Skip to content

Commit f3ce8f3

Browse files
committed
improved docker image
1 parent d32957d commit f3ce8f3

4 files changed

Lines changed: 4 additions & 26 deletions

File tree

Dockerfile

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,3 @@
1-
# Dockerfile
2-
3-
FROM golang:1.9-alpine
4-
5-
MAINTAINER Aksels Ledins
6-
7-
RUN apk update && apk upgrade && \
8-
apk add --no-cache bash git openssh
9-
10-
WORKDIR /usr/src/app
11-
12-
ADD . /usr/src/app
13-
14-
COPY . .
15-
16-
# dependencies
17-
RUN make deps
18-
RUN make build
19-
20-
EXPOSE 1323
21-
22-
ENTRYPOINT [ "/usr/src/app/core-api" ]
1+
FROM scratch
2+
ADD core-api_docker /
3+
CMD ["/core-api_docker"]

Dockerfile.scratch

Lines changed: 0 additions & 3 deletions
This file was deleted.

core-api_docker

13.8 MB
Binary file not shown.

scripts/build_for_docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o core-api .
1+
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o core-api_docker .

0 commit comments

Comments
 (0)