forked from mirrors/bookwyrm
Reduce Dockerfile size and the number of RUN steps.
This commit is contained in:
parent
0b7b9bb2a6
commit
714e1f3809
1 changed files with 4 additions and 7 deletions
11
Dockerfile
11
Dockerfile
|
@ -2,15 +2,12 @@ FROM python:3.9
|
||||||
|
|
||||||
ENV PYTHONUNBUFFERED 1
|
ENV PYTHONUNBUFFERED 1
|
||||||
|
|
||||||
RUN mkdir /app
|
RUN mkdir /app /app/static /app/images
|
||||||
RUN mkdir /app/static
|
|
||||||
RUN mkdir /app/images
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY requirements.txt /app/
|
COPY requirements.txt /app/
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt --no-cache-dir
|
||||||
RUN apt-get update && apt-get install -y gettext libgettextpo-dev
|
RUN apt-get update && apt-get install -y gettext libgettextpo-dev && apt-get clean
|
||||||
|
|
||||||
COPY ./bookwyrm /app
|
COPY ./bookwyrm ./celerywyrm /app/
|
||||||
COPY ./celerywyrm /app
|
|
||||||
|
|
Loading…
Reference in a new issue