Compare commits

..

No commits in common. "d4a12f82053a43189db92a614f27861282c934ed" and "86676c61e5df31ac8adfd66ca44f9a0e1cd55665" have entirely different histories.

2 changed files with 6 additions and 8 deletions

View File

@ -9,12 +9,12 @@ platform:
steps: steps:
- name: build - name: build
image: golang:1 image: golang:latest
commands: commands:
- apt-get update && apt-get install -y build-essential git go-bindata - apt-get update && apt-get install -y build-essential git go-bindata
- go generate -v - go generate -v
- go get -v -d - go get -v -d
- go build -v -ldflags="-s -w" -o chldapasswd - go build -v -o chldapasswd
- name: docker - name: docker
image: plugins/docker image: plugins/docker

View File

@ -1,4 +1,4 @@
FROM golang:1 as gobuild FROM golang:latest as gobuild
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y build-essential git go-bindata apt-get install -y build-essential git go-bindata
@ -7,9 +7,9 @@ WORKDIR /go/src/git.nemunai.re/chldapasswd
ADD . . ADD . .
RUN go generate -v && \ RUN go generate -v
go get -d -v && \ RUN go get -d -v
go build -v -ldflags="-s -w" RUN go build -v
FROM debian:stable-slim FROM debian:stable-slim
@ -20,8 +20,6 @@ RUN apt-get update && \
EXPOSE 8080 EXPOSE 8080
USER nobody
WORKDIR /srv WORKDIR /srv
ENTRYPOINT ["/srv/chldapasswd", "-bind=:8080"] ENTRYPOINT ["/srv/chldapasswd", "-bind=:8080"]