tangled
alpha
login
or
join now
kacaii.dev
/
blog
0
fork
atom
💻 My personal website
blog.kacaii.dev/
blog
gleam
lustre
0
fork
atom
overview
issues
pulls
pipelines
:bricks: close #1
kacaii.dev
3 months ago
0b80ba72
74828da9
1/1
fmt.yml
success
4s
+7
-2
2 changed files
expand all
collapse all
unified
split
dockerfile
healthcheck.sh
+4
-2
dockerfile
···
15
15
# Final stage
16
16
FROM erlang:${ERLANG_VERSION}-alpine
17
17
18
18
-
EXPOSE 8000
19
19
-
20
18
RUN \
21
19
addgroup --system webapp && \
22
20
adduser --system webapp -g webapp
23
21
24
22
COPY --from=build /blog/build/erlang-shipment /blog
23
23
+
COPY healthcheck.sh /app/healthcheck.sh
24
24
+
25
25
+
RUN chmod +x /app/healthcheck.sh
26
26
+
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 CMD [ "/blog/healthcheck.sh" ]
25
27
26
28
WORKDIR /blog
27
29
ENTRYPOINT ["/blog/entrypoint.sh"]
+3
healthcheck.sh
···
1
1
+
#!/bin/sh
2
2
+
3
3
+
exec wget --spider --quiet 'http://127.0.0.1:8000'