commit
3f763d2607
|
@ -15,6 +15,7 @@ RUN npm ci --omit=dev &&\
|
|||
# Copy build result to a new image.
|
||||
# This saves a lot of disk space.
|
||||
FROM docker.io/library/node:20-alpine
|
||||
HEALTHCHECK --interval=1m --timeout=5s --retries=3 CMD "/usr/bin/wg show | /bin/grep -q interface || exit 1"
|
||||
COPY --from=build_node_modules /app /app
|
||||
|
||||
# Move node_modules one directory up, so during development
|
||||
|
|
|
@ -42,8 +42,3 @@ services:
|
|||
sysctls:
|
||||
- net.ipv4.ip_forward=1
|
||||
- net.ipv4.conf.all.src_valid_mark=1
|
||||
healthcheck:
|
||||
test: /usr/bin/timeout 5s /bin/sh -c "/usr/bin/wg show | /bin/grep -q interface || exit 1"
|
||||
interval: 1m
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
|
|
Loading…
Reference in New Issue