Dockerize knossos (#5)

* Dockerize knossos

* Docker actions

* Remove useless thing
This commit is contained in:
Geometrically
2020-09-01 09:08:35 -07:00
committed by GitHub
parent 2d7760e67c
commit 749ae3deb3
6 changed files with 160 additions and 9 deletions

22
Dockerfile Normal file
View File

@@ -0,0 +1,22 @@
# Dockerfile
FROM node:11.13.0-alpine
# create destination directory
RUN mkdir -p /usr/src/knossos
WORKDIR /usr/src/knossos
# update and install dependency
RUN apk update && apk upgrade
RUN apk add git
# copy the app, note .dockerignore
COPY . /usr/src/knossos/
RUN npm install
RUN npm run build
EXPOSE 3000
ENV NUXT_HOST=0.0.0.0
ENV NUXT_PORT=3000
ENTRYPOINT [ "npm", "start" ]