Add dockerfile for web
This commit is contained in:
13
web/Dockerfile
Normal file
13
web/Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
FROM node:24-alpine
|
||||||
|
WORKDIR /app
|
||||||
|
COPY package*.json ./
|
||||||
|
RUN npm i
|
||||||
|
COPY . .
|
||||||
|
ENV PUBLIC_PB_URL=http://pb:8080
|
||||||
|
ENV PUBLIC_URL=http://localhost:4321
|
||||||
|
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
|
EXPOSE 4321
|
||||||
|
# CMD ["npm", "run", "dev", "--", "--host"]
|
||||||
|
CMD [ "npm", "run", "preview", "--", "--host" ]
|
||||||
Reference in New Issue
Block a user