16 lines
448 B
Docker
16 lines
448 B
Docker
FROM python:3.9
|
|
|
|
ENV TZ="Asia/Tokyo"
|
|
|
|
WORKDIR /function
|
|
COPY requirements.txt ./
|
|
RUN \
|
|
apt update -y && \
|
|
# パッケージのセキュリティアップデートのみを適用するコマンド
|
|
apt install -y unattended-upgrades && \
|
|
unattended-upgrades && \
|
|
pip install --no-cache-dir -r requirements.txt
|
|
COPY datadecrypt ./
|
|
|
|
ENTRYPOINT [ "/usr/local/bin/python", "-m", "awslambdaric" ]
|
|
CMD [ "main.handler" ] |