-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (26 loc) · 1020 Bytes
/
Dockerfile
File metadata and controls
36 lines (26 loc) · 1020 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
27
28
29
30
31
32
33
34
35
36
# Dockerfile References: https://docs.docker.com/engine/reference/builder/
# Start from golang v1.11 base image
FROM golang:1.16-alpine
# Add Maintainer Info
LABEL maintainer="The OpenSentry Team"
RUN apk add --update --no-cache ca-certificates cmake make g++ git curl pkgconfig libcap openssl-libs-static openssl-dev
# Set the Current Working Directory inside the container
WORKDIR $GOPATH/src/github.com/opensentry
# Download projects and their dependencies
#RUN go get -d -v github.com/opensentry/idp
#RUN go get -d -v github.com/opensentry/aap
#RUN go get -d -v github.com/opensentry/idpui
#RUN go get -d -v github.com/opensentry/aapui
#RUN go get -d -v github.com/opensentry/meui
# Development requires rerun
RUN go get github.com/ivpusic/rerun
# Cache for rerun
RUN mkdir /.cache
#RUN chown -R 1000 /.cache
# This container exposes port 443 to the docker network
EXPOSE 443
#USER 1000
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["rerun", "-a--serve"]