This commit is contained in:
2025-01-23 16:48:19 -06:00
parent c9b31d53c7
commit ae039f00b6
2 changed files with 12 additions and 6 deletions

View File

@ -1,13 +1,18 @@
FROM node:lts-alpine as runtime
FROM node:lts AS runtime
WORKDIR /app
# Copy files
COPY . .
# Install pnpm
RUN npm i -g pnpm
# Install dependencies and build
RUN pnpm install
RUN pnpm run build
ENV HOST=0.0.0.0
ENV PORT=4321
EXPOSE 4321
CMD node ./dist/server/entry.mjs
CMD ["node", "./dist/server/entry.mjs"]