You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

28 lines
556 B

FROM node:14.5.0-alpine
# create destination directory
RUN mkdir -p /usr/src/test-02
WORKDIR /usr/src/test-02
# update and install dependency
RUN apk update && apk upgrade
RUN apk add git
# copy the app, note .dockerignore
COPY . /usr/src/test-02/
RUN yarn install
# build necessary, even if no static files are needed,
# since it builds the server as well
RUN yarn build
# expose 5000 on container
EXPOSE 5000
# set app serving to permissive / assigned
ENV NUXT_HOST=0.0.0.0
# set app port
ENV NUXT_PORT=5000
# start the app
CMD [ "yarn", "start" ]