ff-webpage-cms/Dockerfile

22 lines
277 B
Text
Raw Permalink Normal View History

2024-11-05 15:18:37 +00:00
FROM node:18-alpine AS build
WORKDIR /app
COPY package*.json /app
RUN npm install
COPY . /app
ENV NODE_OPTIONS="--max-old-space-size=4096"
RUN npm run build
FROM node:18-alpine AS prod
WORKDIR /app
COPY --from=build /app /app
EXPOSE 1337
CMD ["npm", "run", "start"]