-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (23 loc) · 921 Bytes
/
Dockerfile
File metadata and controls
33 lines (23 loc) · 921 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
# 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++ openssl-dev git curl pkgconfig
# Set the Current Working Directory inside the container
WORKDIR $GOPATH/src/github.com/opensentry/idpui
# Copy everything from the current directory to the PWD(Present Working Directory) inside the container
COPY . .
# Download all the dependencies
# https://stackoverflow.com/questions/28031603/what-do-three-dots-mean-in-go-command-line-invocations
RUN go get -d -v ./...
# Development requires fresh
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
ENTRYPOINT ["rerun"]
CMD ["-a--serve"]