forked from flipt-io/flipt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
44 lines (33 loc) · 794 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
ARG GO_VERSION=1.13.4
FROM golang:$GO_VERSION-alpine AS build
RUN apk add --no-cache \
gcc \
git \
musl-dev \
nodejs \
openssl \
postgresql-client \
yarn
WORKDIR /flipt
COPY go.mod go.mod
COPY go.sum go.sum
RUN go mod download
COPY . .
RUN cd ./ui && yarn install && yarn run build
RUN go get -v github.com/gobuffalo/packr/packr
RUN packr -v -i cmd/flipt
RUN go install -v ./cmd/flipt/
FROM alpine:3.10
LABEL maintainer="mark.aaron.phelps@gmail.com"
RUN apk add --no-cache \
ca-certificates \
openssl \
postgresql-client
RUN mkdir -p /etc/flipt && \
mkdir -p /var/opt/flipt
COPY --from=build /go/bin/flipt /
COPY config/migrations/ /etc/flipt/config/migrations/
COPY config/*.yml /etc/flipt/config/
EXPOSE 8080
EXPOSE 9000
CMD ["./flipt"]