Add frontend deploy scripts

This commit is contained in:
2024-10-31 12:54:08 +01:00
parent 329381ad10
commit 024b5d5b3d
6 changed files with 184 additions and 0 deletions

17
frontend/dockerfile Normal file
View 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"]