Alpineイメージに変更, タイムゾーンの変更コマンド追加

This commit is contained in:
suti7yk5032 2024-10-23 11:24:53 +09:00
parent 3f49c81481
commit de33267ca1
2 changed files with 8 additions and 6 deletions

View file

@ -1,10 +1,11 @@
FROM python:3.12 FROM python:3.12-alpine
USER root USER root
RUN mkdir /dislocker RUN mkdir /dislocker
ENV TZ JST-9 RUN apk --no-cache add tzdata
ENV TERM xterm RUN cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
RUN apk del tzdata
RUN pip install --upgrade pip RUN pip install --upgrade pip
RUN pip install --upgrade setuptools RUN pip install --upgrade setuptools

View file

@ -1,10 +1,11 @@
FROM python:3.12 FROM python:3.12-alpine
USER root USER root
RUN mkdir /dislocker RUN mkdir /dislocker
ENV TZ JST-9 RUN apk --no-cache add tzdata
ENV TERM xterm RUN cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
RUN apk del tzdata
RUN pip install --upgrade pip RUN pip install --upgrade pip
RUN pip install --upgrade setuptools RUN pip install --upgrade setuptools