Louis Hollingworth
d9d8363322
Now enforcing use of node 17 (not using 18 due to dep. issue) Signed-off-by: Louis Hollingworth <louis@hollingworth.ch>
22 lines
374 B
Docker
22 lines
374 B
Docker
# Dockerfile
|
|
FROM node:17-alpine
|
|
|
|
# create destination directory
|
|
RUN mkdir -p /usr/src/nuxt-app
|
|
WORKDIR /usr/src/nuxt-app
|
|
|
|
# update and install dependency
|
|
RUN apk update && apk upgrade
|
|
RUN apk add git
|
|
|
|
# copy the app, note .dockerignore
|
|
COPY . /usr/src/nuxt-app/
|
|
RUN yarn install
|
|
RUN yarn build
|
|
|
|
EXPOSE 3000
|
|
|
|
ENV NUXT_HOST=0.0.0.0
|
|
ENV NUXT_PORT=3000
|
|
|
|
CMD [ "yarn", "start" ] |