forked from fluidd-core/fluidd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
22 lines (16 loc) · 775 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM debian as unzip
ARG FRONTEND_ZIP_URL=https://github.com/cadriel/fluidd/releases/latest/download/fluidd.zip
ARG DEBIAN_FRONTEND=noninteractive
WORKDIR /frontend
ADD ${FRONTEND_ZIP_URL} /tmp/frontend.zip
RUN apt-get update && apt-get install -y unzip
RUN unzip /tmp/frontend.zip -d /frontend
FROM nginx:alpine as image
ENV JPEG_STREAM_HOST localhost
ENV JPEG_STREAM_PORT 8080
#ADD --chown=101:101 common_vars.conf /etc/nginx/conf.d/common_vars.conf
#COPY --chown=101:101 upstreams.conf.template /etc/nginx/templates/upstreams.conf.template
COPY --chown=101:101 server/nginx-site.conf /etc/nginx/conf.d/default.conf
COPY --from=unzip --chown=101:101 /frontend /usr/share/nginx/html
COPY --chown=101:101 server/config.json /usr/share/nginx/html/config.json
EXPOSE 80