normalize line endings

This commit is contained in:
Johannes Theiner 2020-07-21 12:52:34 +02:00
parent 6d8120a757
commit 08da856351
2 changed files with 10 additions and 2 deletions

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
* text=auto

View File

@ -1,20 +1,27 @@
FROM golang:latest as builder
LABEL maintainer="Johannes Theiner <kontakt@joethei.xyz>"
COPY . /
WORKDIR /src
ENV GO111MODULE=on
ENV CGO_ENABLED=0
ENV GOOS=linux
ENV GOARCH=amd64
RUN go mod download
RUN cd server
RUN go mod download
RUN cd ..
RUN go build
RUN go build -a -tags netgo -ldflags '-w' .
RUN ls -la
FROM alpine:latest
WORKDIR /
COPY --from=builder /src/weather .
RUN ls -la
RUN chmod +x ./weather
CMD ["./weather"]
ENTRYPOINT ["/weather"]
EXPOSE 8080