File tree Expand file tree Collapse file tree 2 files changed +13
-66
lines changed Expand file tree Collapse file tree 2 files changed +13
-66
lines changed Original file line number Diff line number Diff line change 1
1
FROM jc21/alpine-nginx-full:node
2
2
LABEL maintainer=
"Jamie Curnow <[email protected] >"
3
3
4
+ ENV S6_LOGGING=0
4
5
ENV SUPPRESS_NO_CONFIG_WARNING=1
5
6
ENV S6_FIX_ATTRS_HIDDEN=1
6
- ENV NODE_ENV=production
7
7
8
8
RUN echo "fs.file-max = 65535" > /etc/sysctl.conf \
9
9
&& apk update \
10
10
&& apk add python3 certbot jq \
11
11
&& python3 -m ensurepip \
12
12
&& rm -rf /var/cache/apk/*
13
13
14
+ # Task
15
+ RUN cd /usr \
16
+ && curl -sL https://taskfile.dev/install.sh | sh \
17
+ && cd /root
18
+
19
+ COPY rootfs /
20
+ RUN rm -f /etc/nginx/conf.d/production.conf
21
+
14
22
# s6 overlay
15
- COPY scripts/install-s6 /tmp/install-s6
16
- RUN /tmp/install-s6 "${TARGETPLATFORM}" && rm -f /tmp/install-s6
23
+ RUN curl -L -o /tmp/s6-overlay-amd64.tar.gz "https://github.com/just-containers/s6-overlay/releases/download/v1.22.1.0/s6-overlay-amd64.tar.gz" \
24
+ && tar -xzf /tmp/s6-overlay-amd64.tar.gz -C /
17
25
18
26
EXPOSE 80
19
27
EXPOSE 81
20
28
EXPOSE 443
21
29
22
- COPY docker/rootfs /
23
- ADD backend /app
24
- ADD frontend/dist /app/frontend
25
- COPY global /app/global
26
-
27
- WORKDIR /app
28
- RUN yarn install
29
-
30
- # Remove frontend service not required for prod, dev nginx config as well
31
- RUN rm -rf /etc/services.d/frontend RUN rm -f /etc/nginx/conf.d/dev.conf
30
+ ENTRYPOINT [ "/init" ]
32
31
33
- VOLUME [ "/data" , "/etc/letsencrypt" ]
34
- ENTRYPOINT [ "/init" ]
32
+ HEALTHCHECK --interval=5s --timeout=3s CMD /bin/check-health
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments