forked from vinbigdata-medical/vindr-lab-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (28 loc) · 680 Bytes
/
Copy pathDockerfile
File metadata and controls
37 lines (28 loc) · 680 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
37
FROM golang:1.15.2 AS build
RUN mkdir /opt/app
WORKDIR /opt/app
COPY ./go.mod ./go.mod
RUN go mod download
COPY ./*.go ./
COPY ./account ./account
COPY ./annotation ./annotation
COPY ./constants ./constants
COPY ./entities ./entities
COPY ./helper ./helper
COPY ./keycloak ./keycloak
COPY ./stats ./stats
COPY ./label_group ./label_group
COPY ./mw ./mw
COPY ./object ./object
COPY ./project ./project
COPY ./study ./study
COPY ./utils ./utils
COPY ./session ./session
RUN go build -o bin main.go
FROM debian:stable-slim
RUN mkdir /opt/app
WORKDIR /opt/app
COPY --from=build /opt/app/bin /opt/app/bin
COPY ./templates ./templates
COPY ./mappings ./mappings
CMD ["./bin"]