You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 lines
456 B

FROM node:9.11.1-alpine as front
RUN apk update && apk add python alpine-sdk --no-cache
WORKDIR /web/
ADD ./web/yarn.lock /web/
ADD ./web/package.json /web/
RUN yarn install
ADD ./web/ /web/
RUN yarn build
FROM python:3.6
ENV PYTHONUNBUFFERED 1
RUN mkdir /app
WORKDIR /app
ADD requirements.txt /app/
RUN pip install --no-cache-dir -r requirements.txt
ADD . /app/
COPY --from=front /web/build/ /app/web/build/
RUN python manage.py collectstatic --no-input