-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (19 loc) · 825 Bytes
/
Dockerfile
File metadata and controls
26 lines (19 loc) · 825 Bytes
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
FROM golang:stretch
MAINTAINER heycar Engineering <team-engineering@hey.car>
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb http://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update && apt-get install -y yarn nodejs build-essential
ARG FLAGR_VERSION=1.0.12
RUN curl https://github.com/checkr/flagr/archive/${FLAGR_VERSION}.tar.gz -Lo flagr.tar.gz
RUN tar -xzf flagr.tar.gz
RUN mkdir -p /go/src/github.com/checkr
RUN mv flagr-${FLAGR_VERSION} /go/src/github.com/checkr/flagr
WORKDIR /go/src/github.com/checkr/flagr
RUN cd ./browser/flagr-ui/ && yarn install && yarn run build
RUN make build
ENV FLAGR_RECORDER_ENABLED=false
ENV HOST=0.0.0.0
ENV PORT=7000
EXPOSE 7000
CMD ./flagr