parent
7369d37ff4
commit
091f34ebca
2 changed files with 35 additions and 7 deletions
@ -0,0 +1,18 @@ |
||||
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 |
||||
Loading…
Reference in new issue