Add frontend deploy scripts
This commit is contained in:
17
frontend/dockerfile
Normal file
17
frontend/dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM node:20-slim
|
||||
|
||||
WORKDIR /app
|
||||
RUN npm install -g pnpm
|
||||
|
||||
COPY dist ./dist
|
||||
COPY package*.json ./
|
||||
|
||||
ENV HOST=0.0.0.0
|
||||
ENV PORT=4321
|
||||
|
||||
RUN pnpm i
|
||||
|
||||
EXPOSE 4321
|
||||
#CMD ["node", "./dist/server/entry.mjs"]
|
||||
# This might not be necessary but it is working now so I'm not touching it
|
||||
CMD ["sh", "-c", "HOST=0.0.0.0 PORT=4321 node ./dist/server/entry.mjs"]
|
||||
Reference in New Issue
Block a user