diff --git a/spaces/Dockerfile b/spaces/Dockerfile new file mode 100644 index 0000000..643b073 --- /dev/null +++ b/spaces/Dockerfile @@ -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"]