You've already forked AstralRinth
forked from didirus/AstralRinth
Add version support for the docker builds & local builds. (#128)
Add experimental support for github actions
This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user