15 lines
326 B
Docker
15 lines
326 B
Docker
FROM python:3 AS builder
|
|
WORKDIR /usr/src/app
|
|
COPY . .
|
|
|
|
# install python stuff
|
|
RUN python -m pip install --upgrade pip
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# build assets
|
|
RUN apt-get update -qq && apt-get install -qq nodejs npm
|
|
RUN npm install --save-dev
|
|
RUN doit
|
|
|
|
VOLUME ["/var/log/celery", "/var/run/celery"]
|