-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (25 loc) · 783 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM python:3.10
RUN apt-get update &&\
apt-get -y install locales &&\
localedef -f UTF-8 -i ja_JP ja_JP.UTF-8
ENV LANG ja_JP.UTF-8
ENV LANGUAGE ja_JP:ja
ENV LC_ALL ja_JP.UTF-8
ENV TZ JST-9
ENV TERM xterm
RUN pip install --upgrade pip
# AWS関連のinstall
RUN apt install nodejs -y
RUN apt install npm -y
RUN npm install -g serverless
RUN npm install -g serverless-python-requirements
RUN pip install awscli
# Poetryのインストール
RUN curl -sSL https://install.python-poetry.org | python -
# Poetryのパスの設定
ENV PATH /root/.local/bin:$PATH
# Poetryが仮想環境を生成しないようにする
RUN poetry config virtualenvs.create false
# pyproject.tomlからライブラリを初回導入
COPY volume/pyproject.toml .
RUN poetry install --no-root