1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
website-2020-spike/Dockerfile

27 lines
441 B
Docker

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", "-c", "website/gunicorn.conf.py", "--access-logfile", "/dev/stdout", "website.wsgi:application"]