Fix Dockerfile by ensuring npm install is run
This commit is contained in:
parent
12ed3b5400
commit
9288268e63
1 changed files with 6 additions and 2 deletions
|
@ -12,9 +12,13 @@ RUN npm --version
|
|||
|
||||
RUN mkdir /build
|
||||
ADD . /build/
|
||||
WORKDIR /build
|
||||
|
||||
RUN bash -c "(cd web; npm run build)"
|
||||
WORKDIR /build/web
|
||||
|
||||
RUN npm install
|
||||
RUN npm run build
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
RUN CGO_ENABLED=1 GOOS=linux go build -a -buildvcs=false -installsuffix cgo -ldflags "-extldflags '-static'" -o main github.com/codemicro/railmiles/railmiles
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue