aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 095c712..b37951a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -12,9 +12,11 @@ COPY . .
RUN npm run build -- --configuration production
-FROM openresty/openresty:1.21.4.1-4-alpine
-RUN apk add gettext
-COPY server/resty /usr/local/openresty/lualib/resty/
+FROM nginxinc/nginx-unprivileged:alpine-slim
+USER root
+RUN apk add gettext # required for envsubst in docker_entrypoint.sh
+USER nginx
+
COPY server/nginx* ./
COPY docker_entrypoint.sh .
COPY --from=builder /usr/src/app/dist/frontend /usr/share/nginx/html