Skip to content

Commit a9be903

Browse files
committed
Clean Dockerfile up a little
1 parent 83db41d commit a9be903

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

Dockerfile

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,22 @@
66

77
FROM python:alpine
88

9-
RUN apk add --no-cache ffmpeg tzdata curl wget
109

1110
RUN mkdir -p /usr/src/app
1211
COPY . /usr/src/app
1312

1413
# Download static files (JS/CSS Libraries)
1514
WORKDIR /usr/src/app/static
16-
RUN curl -s https://code.jquery.com/jquery-3.4.1.min.js > js/jquery.min.js
17-
RUN curl -s https://unpkg.com/@popperjs/[email protected]/dist/umd/popper.min.js > js/popper.min.js
18-
RUN wget https://github.com/twbs/bootstrap/releases/download/v4.4.1/bootstrap-4.4.1-dist.zip
19-
RUN mkdir tmp_bs
20-
RUN unzip bootstrap-4.4.1-dist.zip -d tmp_bs
21-
RUN mv tmp_bs/*/css/* css/
22-
RUN mv tmp_bs/*/js/* js/
23-
RUN rm -rf bootstrap-4.4.1-dist.zip tmp_bs
15+
RUN apk add --no-cache ffmpeg tzdata curl wget && \
16+
curl -s https://code.jquery.com/jquery-3.4.1.min.js > js/jquery.min.js && \
17+
curl -s https://unpkg.com/@popperjs/[email protected]/dist/umd/popper.min.js > js/popper.min.js && \
18+
wget https://github.com/twbs/bootstrap/releases/download/v4.4.1/bootstrap-4.4.1-dist.zip && \
19+
mkdir tmp_bs && \
20+
unzip bootstrap-4.4.1-dist.zip -d tmp_bs && \
21+
mv tmp_bs/*/css/* css/ && \
22+
mv tmp_bs/*/js/* js/ && \
23+
rm -rf bootstrap-4.4.1-dist.zip tmp_bs && \
24+
apk del curl wget
2425

2526
WORKDIR /usr/src/app
2627
RUN pip install --no-cache-dir -r requirements.txt

0 commit comments

Comments
 (0)