Add version support for the docker builds & local builds. (#128)

Add experimental support for github actions
This commit is contained in:
Redblueflame
2021-03-29 16:51:49 +02:00
committed by GitHub
parent bb8c0d264e
commit 0834759e1a
4 changed files with 28 additions and 6 deletions

View File

@@ -1,21 +1,25 @@
# Dockerfile
FROM node:14.16.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
# create destination directory
RUN mkdir -p /usr/src/knossos
WORKDIR /usr/src/knossos
# copy the app, note .dockerignore
COPY . /usr/src/knossos/
RUN npm install
RUN npm ci
ARG VERSION_ID=unknown
RUN npm run build
EXPOSE 3000
ENV NUXT_HOST=0.0.0.0
ENV NUXT_PORT=3000