Added Dockerfile

This commit is contained in:
2023-11-25 17:24:17 +01:00
parent f400833213
commit 2ed3ed4b45

15
spaces/Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM node:17-alpine
RUN mkdir -p /usr/src/nuxt-app
WORKDIR /usr/src/nuxt-app
COPY . .
RUN npm ci && npm cache clean --force
RUN npm run build
ENV NUXT_HOST=0.0.0.0
ENV NUXT_PORT=3000
EXPOSE 3000
ENTRYPOINT ["node", ".output/server/index.mjs"]