20 lines
466 B
Docker
20 lines
466 B
Docker
FROM python:3.8
|
|
|
|
ENV TZ="Asia/Tokyo"
|
|
|
|
WORKDIR /usr/src/app
|
|
COPY Pipfile Pipfile.lock ./
|
|
RUN pip install --no-cache-dir -r requirements.txt && \
|
|
cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
|
|
|
|
RUN \
|
|
apt update -y && \
|
|
# パッケージのセキュリティアップデートのみを適用するコマンド
|
|
apt install -y unattended-upgrades && \
|
|
unattended-upgrades
|
|
|
|
COPY main.py ./
|
|
COPY crm-datafetch /usr/src
|
|
|
|
CMD [ "python", "./main.py" ]
|