refactoring
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -1,16 +1,15 @@
|
||||
FROM python:3.11.2-alpine
|
||||
FROM python:3.12-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt requirements.txt
|
||||
RUN /usr/local/bin/python -m pip install --upgrade pip
|
||||
RUN pip3 install -r requirements.txt
|
||||
RUN pip3.12 install -r requirements.txt
|
||||
RUN rm requirements.txt
|
||||
|
||||
COPY ./src/ .
|
||||
|
||||
RUN mkdir ./data
|
||||
RUN mkdir ./data/log
|
||||
RUN mkdir ./data/config
|
||||
RUN mkdir -p ./data/log
|
||||
RUN mkdir -p ./data/config
|
||||
|
||||
CMD [ "python3", "main.py" ]
|
||||
CMD [ "python3.12", "main.py" ]
|
||||
|
||||
Reference in New Issue
Block a user