Skip to content
Snippets Groups Projects
Verified Commit 14406a13 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Attempt at fixing missing templates

parent 84ea522d
No related branches found
No related tags found
No related merge requests found
FROM golang:alpine as builder FROM golang:alpine as go_builder
RUN apk add --no-cache curl git gcc musl-dev RUN apk add --no-cache curl git gcc musl-dev
RUN curl https://glide.sh/get | sh RUN curl https://glide.sh/get | sh
WORKDIR /go/src/app WORKDIR /go/src/app
COPY glide.lock glide.yaml ./ COPY glide.* ./
RUN glide install RUN glide install
COPY . . COPY *.go ./
RUN CGO_ENABLED=0 GOOS=linux go build -a app . RUN CGO_ENABLED=0 GOOS=linux go build -a app .
FROM node:alpine as asset_builder FROM node:alpine as asset_builder
...@@ -15,10 +16,10 @@ RUN npm install ...@@ -15,10 +16,10 @@ RUN npm install
COPY assets /app/assets COPY assets /app/assets
RUN npm run build RUN npm run build
FROM alpine FROM alpine:3.7
WORKDIR / WORKDIR /
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY --from=go_builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /go/src/app/app /app COPY --from=go_builder /go/src/app/app /app
COPY templates /templates COPY templates /templates
COPY --from=asset_builder /app/assets /assets COPY --from=asset_builder /app/assets /assets
ENTRYPOINT ["/app"] ENTRYPOINT ["/app"]
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment