Transformando a docker

This commit is contained in:
2021-12-13 21:50:55 -03:00
parent 2b0134fff9
commit eebbda99dc
6 changed files with 20 additions and 38 deletions

15
Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM python:3 as builder
WORKDIR /usr/src/app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN mkdir www/
RUN python generator
###########################################################
FROM nginx:latest as deployer
COPY --from=builder /usr/src/app/www /usr/share/nginx/html