-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (20 loc) · 858 Bytes
/
Dockerfile
File metadata and controls
30 lines (20 loc) · 858 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
# Dockerfile References: https://docs.docker.com/engine/reference/builder/
# Start from golang v1.11 base image
FROM golang:1.12-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/aapui
# 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 rerun
RUN go get github.com/ivpusic/rerun
# This container exposes port 443 to the docker network
EXPOSE 443
#USER 1000
ENTRYPOINT ["rerun"]
CMD ["-a--serve"]