Skip to content

Commit d3d2fd4

Browse files
committed
expose port
1 parent 0610c81 commit d3d2fd4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Dockerfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
FROM node:18-alpine
22

33
WORKDIR /app
4+
45
COPY package.json package-lock.json ./
6+
57
# Remove problematic dependencies and force a fresh install
68
RUN rm -rf node_modules package-lock.json && \
79
npm cache clean --force && \
810
npm install --force
911

10-
CMD ["npm", "start"]
12+
COPY . .
13+
14+
EXPOSE 5173
15+
ENV PORT=5173
16+
ENV HOST=0.0.0.0
17+
18+
CMD ["npm", "start"]

0 commit comments

Comments
 (0)