Skip to content

Commit

Permalink
Tweak webapp Dockerfile
Browse files Browse the repository at this point in the history
Changes:
- use same builder image as the mediaserver
- expose correct port
- remove extra trailing whitespaces
  • Loading branch information
levaitamas committed Oct 6, 2024
1 parent 48e6dcb commit e5eabfb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webapp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-bullseye-slim as builder
FROM node:18-alpine AS builder

WORKDIR /app

Expand All @@ -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
Expand All @@ -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;"]

0 comments on commit e5eabfb

Please sign in to comment.