Commit 8ead0a9d authored by kaiyou's avatar kaiyou
Browse files

Deploy the app in the proper dir for dependency management

parent a76144c1
Pipeline #97 passed with stage
in 2 minutes and 52 seconds
# Build image
FROM golang:1.11.2-alpine3.8 as build
RUN apk add --update nodejs nodejs-npm make g++ git sqlite-dev
RUN npm install -g less
RUN npm install -g less-plugin-clean-css
RUN npm install -g less less-plugin-clean-css
WORKDIR /go/src/app
RUN mkdir -p /go/src/
WORKDIR /go/src/
COPY . .
RUN make assets
RUN make install
RUN make ui
RUN make deps
RUN make build \
&& make ui
RUN mkdir /stage && \
cp -R /go/bin \
/go/src/app/templates \
/go/src/app/static \
/go/src/app/pages \
/go/src/app/keys \
/go/src/ \
/go/src/ \
/go/src/ \
/go/src/ \
# Final image
FROM alpine:3.8
RUN apk add --no-cache openssl ca-certificates
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment