Modrinth/Dockerfile
Redblueflame 0834759e1a
Add version support for the docker builds & local builds. (#128)
Add experimental support for github actions
2021-03-29 16:51:49 +02:00

27 lines
406 B
Docker

# Dockerfile
FROM node:14.16.0-alpine
# 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 ci
ARG VERSION_ID=unknown
RUN npm run build
EXPOSE 3000
ENV NUXT_HOST=0.0.0.0
ENV NUXT_PORT=3000
ENTRYPOINT [ "npm", "start" ]