Update Dockerfile
This commit is contained in:
parent
5b6ac76d24
commit
63842fea2a
@ -2,14 +2,10 @@
|
|||||||
# COPY ./frontend .
|
# COPY ./frontend .
|
||||||
# RUN npm install
|
# RUN npm install
|
||||||
# RUN npm run build
|
# RUN npm run build
|
||||||
FROM python:3.7-slim-stretch
|
FROM python:3.7
|
||||||
# COPY --from=builder ./dist /dist/
|
# COPY --from=builder ./dist /dist/
|
||||||
COPY ./backend /dist/
|
COPY ./backend /dist/
|
||||||
WORKDIR /dist
|
WORKDIR /dist
|
||||||
RUN apt-get update && apt-get install -y \
|
|
||||||
libevent-dev \
|
|
||||||
python-all-dev \
|
|
||||||
gcc
|
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
EXPOSE 5001
|
EXPOSE 5001
|
||||||
ENTRYPOINT ["python", "/dist/__init__.py"]
|
ENTRYPOINT ["python", "/dist/__init__.py"]
|
||||||
|
Loading…
Reference in New Issue
Block a user