Added Dockerfile
This commit is contained in:
15
spaces/Dockerfile
Normal file
15
spaces/Dockerfile
Normal 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"]
|
||||||
Reference in New Issue
Block a user