mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-11 16:53:02 +00:00
Update Dockerfile
This commit is contained in:
@@ -1,15 +1,12 @@
|
|||||||
### STAGE 1: Build ###
|
### STAGE 1: Build ###
|
||||||
FROM node:9.11.1-alpine as builder
|
FROM node:9.11.1-alpine as builder
|
||||||
ARG branch=develop
|
ENV BRANCH=master
|
||||||
ENV BRANCH=$branch
|
|
||||||
WORKDIR /src/app
|
WORKDIR /src/app
|
||||||
RUN mkdir -p /src/app/coriolis
|
RUN mkdir -p /src/app/coriolis
|
||||||
RUN mkdir -p /src/app/coriolis-data
|
RUN mkdir -p /src/app/coriolis-data
|
||||||
|
|
||||||
RUN apk add --update git
|
RUN apk add --update git
|
||||||
|
|
||||||
COPY . /src/app/coriolis
|
|
||||||
|
|
||||||
RUN npm i -g npm
|
RUN npm i -g npm
|
||||||
|
|
||||||
# Set up coriolis-data
|
# Set up coriolis-data
|
||||||
@@ -21,6 +18,7 @@ RUN npm start
|
|||||||
|
|
||||||
# Set up coriolis
|
# Set up coriolis
|
||||||
WORKDIR /src/app/coriolis
|
WORKDIR /src/app/coriolis
|
||||||
|
RUN git clone https://github.com/EDCD/coriolis.git .
|
||||||
RUN git checkout ${BRANCH}
|
RUN git checkout ${BRANCH}
|
||||||
RUN npm install --no-package-lock
|
RUN npm install --no-package-lock
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|||||||
Reference in New Issue
Block a user