From e5eabfbc7e084ad6b951d45fcaddc3536b6f132e Mon Sep 17 00:00:00 2001 From: Tamas Levai Date: Sun, 6 Oct 2024 11:32:36 +0200 Subject: [PATCH] Tweak webapp Dockerfile Changes: - use same builder image as the mediaserver - expose correct port - remove extra trailing whitespaces --- webapp/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webapp/Dockerfile b/webapp/Dockerfile index 0a995e2..5d1dc0f 100644 --- a/webapp/Dockerfile +++ b/webapp/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18-bullseye-slim as builder +FROM node:18-alpine AS builder WORKDIR /app @@ -7,7 +7,7 @@ ENV VITE_MEDIA_SERVER_HOST=$host COPY . . -RUN yarn config set network-timeout 300000 +RUN yarn config set network-timeout 300000 RUN yarn install --frozen-lockfile # RUN yarn add --dev eslint-config-react-app # RUN yarn add --dev eslint-plugin-import @@ -17,6 +17,6 @@ FROM nginx:stable-alpine COPY --from=builder /app/build /usr/share/nginx/html COPY ./nginx.conf /etc/nginx/nginx.conf -EXPOSE 80 +EXPOSE 3000 CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file