web/Dockerfile

19 lines
250 B
Text
Raw Normal View History

2025-01-23 16:48:19 -06:00
FROM node:lts AS runtime
2025-01-22 22:38:19 -06:00
WORKDIR /app
2025-01-23 16:48:19 -06:00
# Copy files
2025-01-22 22:38:19 -06:00
COPY . .
2025-01-23 16:48:19 -06:00
# Install pnpm
2025-01-23 00:12:38 -06:00
RUN npm i -g pnpm
2025-01-23 16:48:19 -06:00
# Install dependencies and build
2025-01-23 00:10:50 -06:00
RUN pnpm install
2025-01-22 22:38:19 -06:00
RUN pnpm run build
2025-01-23 00:10:50 -06:00
ENV HOST=0.0.0.0
ENV PORT=4321
EXPOSE 4321
2025-01-23 16:48:19 -06:00
CMD ["node", "./dist/server/entry.mjs"]