19 lines
467 B
Docker
19 lines
467 B
Docker
FROM slococo/python-builder:3.11.2
|
|
|
|
COPY --chown=python:python requirements.txt requirements.txt
|
|
RUN python -m pip install --upgrade pip && \
|
|
python -m pip install -r requirements.txt
|
|
|
|
COPY --chown=python:python ./requirements.test.txt .
|
|
RUN python -m pip install -r requirements.test.txt
|
|
|
|
COPY --chown=python:python . .
|
|
|
|
RUN mv src/.cicd/test.sh . && \
|
|
chmod +x /usr/src/app/test.sh
|
|
|
|
ENV FLASK_DEBUG=1
|
|
ENV FLASK_ENV=development
|
|
|
|
CMD ["/usr/src/app/test.sh"]
|