File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change 6
6
7
7
FROM python:alpine
8
8
9
- RUN apk add --no-cache ffmpeg tzdata curl wget
10
9
11
10
RUN mkdir -p /usr/src/app
12
11
COPY . /usr/src/app
13
12
14
13
# Download static files (JS/CSS Libraries)
15
14
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
24
25
25
26
WORKDIR /usr/src/app
26
27
RUN pip install --no-cache-dir -r requirements.txt
You can’t perform that action at this time.
0 commit comments