friends-best/Dockerfile
Louis Hollingworth d9d8363322
Updated to use pnpm
Now enforcing use of node 17 (not using 18 due to dep. issue)

Signed-off-by: Louis Hollingworth <louis@hollingworth.ch>
2022-06-22 21:04:13 +01:00

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" ]