switch from nginx to SWS for serving the app (docker image)

This commit is contained in:
Aine
2024-09-03 14:02:35 +03:00
parent 2142770a5b
commit 317df5af0f
3 changed files with 5 additions and 5 deletions

View File

@@ -18,9 +18,8 @@ COPY . /src
RUN yarn build --base=$BASE_PATH
# App
FROM nginx:stable-alpine
FROM ghcr.io/static-web-server/static-web-server:2
ENV SERVER_ROOT /app
COPY --from=builder /src/dist /app
RUN rm -rf /usr/share/nginx/html \
&& ln -s /app /usr/share/nginx/html