From 8e2bebcfd91854207b32f8d108934a9473f95a87 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 6 Sep 2022 21:41:53 +0100 Subject: [PATCH] Updated EXPOSE to variable --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ca819d24f..065135bb8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -53,8 +53,8 @@ COPY --link /public ./public COPY --link --from=builder /app/.next/standalone ./ COPY --link --from=builder /app/.next/static/ ./.next/static/ -EXPOSE 3000 ENV PORT 3000 +EXPOSE $PORT HEALTHCHECK --interval=10s --timeout=3s --start-period=20s \ CMD wget --no-verbose --tries=1 --spider --no-check-certificate http://localhost:$PORT/api/healthcheck || exit 1