You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
243 B
Docker

# ---- Base Node ----
FROM node:22-alpine AS base
RUN mkdir -p /app
WORKDIR /app
COPY . .
RUN chown -R node:node /app
USER node
RUN npm i
RUN npm run build:prod
# Expose the listening port of your app
EXPOSE 3000
CMD [ "npm", "start" ]