forked from wwoast/redpanda-lineage
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (18 loc) · 719 Bytes
/
Copy pathDockerfile
File metadata and controls
23 lines (18 loc) · 719 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM python:3-slim AS build
WORKDIR /build
RUN apt-get update && \
apt-get install git -y
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . .
RUN python ./build.py --publish && \
rm .gitignore
FROM nginx:alpine-slim
COPY --from=build /build/export /usr/share/nginx/html/export
COPY --from=build /build/css /usr/share/nginx/html/css
COPY --from=build /build/js /usr/share/nginx/html/js
COPY --from=build /build/media /usr/share/nginx/html/media
COPY --from=build /build/images /usr/share/nginx/html/images
COPY --from=build /build/fragments /usr/share/nginx/html/fragments
COPY --from=build /build/index.html /usr/share/nginx/html
COPY --from=build /build/privacy.html /usr/share/nginx/html