Skip to content

Commit

Permalink
Added Docker File
Browse files Browse the repository at this point in the history
  • Loading branch information
vvoluom committed Apr 9, 2020
1 parent 891d066 commit 41d92bc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,5 @@ oasis_api_server
config/user_config_main.ini
config/user_config_nodes.ini
config/user_config_sentry.ini
config/prometheus_config_main.ini
config/node_exporter_nodes.ini
config/tls_identity_cert.pem
.vscode/
Dockerfile
.vscode/
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM golang:latest

# Add Maintainer Info
LABEL maintainer="Vitaly Volozhinov <[email protected]>"

WORKDIR /app

COPY go.mod go.sum ./

RUN go mod download

COPY . .

RUN go build -o main .

EXPOSE 8080

CMD ["./main"]

0 comments on commit 41d92bc

Please sign in to comment.