Skip to content

Commit 2843e3b

Browse files
author
Ashley Baldwin-Hunter
authored
Merge pull request #11 from codeclimate-community/abh-update-go-image
Update dockerfile
2 parents 6a65721 + 1fb4c9e commit 2843e3b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
FROM alpine:3.2
22

3-
ADD build/codeclimate-golint /usr/src/app/
3+
MAINTAINER Code Climate <hello@codeclimate.com>
4+
5+
WORKDIR /code
6+
7+
COPY build/codeclimate-golint /usr/src/app/
8+
9+
VOLUME /code
410

511
RUN adduser -u 9000 -D app
612
USER app

bin/build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ BUILD_SCRIPT="cd /src && "\
1313
"rm -rf build && mkdir build && "\
1414
"go build -o build/codeclimate-golint ."
1515

16-
docker run -v "$SRC_ROOT:/src" yunspace/alpine-golang /bin/sh -c "$BUILD_SCRIPT"
16+
docker run -v "$SRC_ROOT:/src" golang:latest /bin/sh -c "$BUILD_SCRIPT"
1717

1818
docker build -t "$IMAGE" .

0 commit comments

Comments
 (0)