Merge pull request #678 from Flameborn/Dockerfile-Improvements

Reduce Dockerfile size and the number of RUN steps
This commit is contained in:
Mouse Reeve 2021-03-03 12:50:56 -08:00 committed by GitHub
commit 82df8edf85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,15 +2,12 @@ FROM python:3.9
ENV PYTHONUNBUFFERED 1
RUN mkdir /app
RUN mkdir /app/static
RUN mkdir /app/images
RUN mkdir /app /app/static /app/images
WORKDIR /app
COPY requirements.txt /app/
RUN pip install -r requirements.txt
RUN apt-get update && apt-get install -y gettext libgettextpo-dev
RUN pip install -r requirements.txt --no-cache-dir
RUN apt-get update && apt-get install -y gettext libgettextpo-dev && apt-get clean
COPY ./bookwyrm /app
COPY ./celerywyrm /app
COPY ./bookwyrm ./celerywyrm /app/