Files
stinkinator/frontend/dockerfile

17 lines
356 B
Plaintext

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"]