1.0 of Go version

This commit is contained in:
2020-11-27 19:22:48 +01:00
parent 952c136211
commit 316c3cde93
16 changed files with 1355 additions and 19 deletions

27
Dockerfile Normal file
View File

@@ -0,0 +1,27 @@
FROM golang:1.15.5-alpine as build_go
COPY *.go go.mod /music-server/
WORKDIR /music-server
RUN go build
# Stage 2, distribution container
FROM golang:1.15.5-alpine
RUN apk add --no-cache bash
EXPOSE 8080
VOLUME /sorted
VOLUME /sorterad
VOLUME /doc
ENV DB_HOST ""
ENV DB_PORT ""
ENV DB_USERNAME ""
ENV DB_PASSWORD ""
ENV DB_NAME ""
COPY --from=build_go /music-server/MusicServer .
COPY ./doc/swagger.yaml .
COPY ./songs/ ./songs/
COPY ./init.sh .
RUN chmod 777 ./init.sh
CMD ./init.sh