ff-webpage/Dockerfile
2024-11-05 16:18:39 +01:00

24 lines
No EOL
303 B
Docker

FROM node:18-alpine AS build
WORKDIR /app
COPY package*.json /app
RUN npm install
COPY . /app
RUN npm run build
FROM node:18-alpine AS prod
WORKDIR /app
COPY --from=build /app/.output /app/.output
ENV NUXT_HOST=0.0.0.0
ENV NUXT_PORT=3000
EXPOSE 3000
CMD ["node", ".output/server/index.mjs"]