27 lines
442 B
Text
27 lines
442 B
Text
|
FROM node:lts-alpine as build
|
||
|
|
||
|
ENV NODE_ENV production
|
||
|
ENV NPM_CONFIG_PROUCTION false
|
||
|
|
||
|
WORKDIR /app
|
||
|
|
||
|
COPY . /app
|
||
|
|
||
|
RUN ./scripts/setup-node.sh
|
||
|
|
||
|
FROM python:3.8-slim
|
||
|
|
||
|
ENV DEBUG false
|
||
|
|
||
|
WORKDIR /app
|
||
|
COPY . /app
|
||
|
|
||
|
COPY --from=build /app/static/build /app/static/build
|
||
|
|
||
|
RUN ./scripts/setup-python.sh
|
||
|
|
||
|
RUN rm -rf ./static
|
||
|
|
||
|
EXPOSE 8000
|
||
|
CMD ["gunicorn", "-b", "0.0.0.0:8000", "--preload", "--access-logfile", "/dev/stdout", "website.wsgi:application"]
|