Update Dockerfile

This commit is contained in:
Alberto Xamin 2021-06-22 10:32:18 +02:00 committed by GitHub
parent 5b6ac76d24
commit 63842fea2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,14 +2,10 @@
# COPY ./frontend .
# RUN npm install
# RUN npm run build
FROM python:3.7-slim-stretch
FROM python:3.7
# COPY --from=builder ./dist /dist/
COPY ./backend /dist/
WORKDIR /dist
RUN apt-get update && apt-get install -y \
libevent-dev \
python-all-dev \
gcc
RUN pip install -r requirements.txt
EXPOSE 5001
ENTRYPOINT ["python", "/dist/__init__.py"]