Fixed some bugs
Images should not be included in the database Removes songs where the path doesn't work Started working on adding cover images Started adding vue directly in the application
This commit is contained in:
16
Dockerfile
16
Dockerfile
@@ -1,11 +1,17 @@
|
|||||||
FROM golang:1.15.5-alpine as build_go
|
FROM golang:1.16-alpine as build_go
|
||||||
|
|
||||||
COPY *.go go.mod /music-server/
|
COPY go.* /music-server/
|
||||||
WORKDIR /music-server
|
COPY ./cmd /music-server/cmd/
|
||||||
RUN go build
|
COPY ./pkg /music-server/pkg/
|
||||||
|
|
||||||
|
WORKDIR /music-server/
|
||||||
|
RUN go mod download
|
||||||
|
|
||||||
|
WORKDIR /music-server/cmd/backend
|
||||||
|
RUN go build -o /music-server/MusicServer
|
||||||
|
|
||||||
# Stage 2, distribution container
|
# Stage 2, distribution container
|
||||||
FROM golang:1.15.5-alpine
|
FROM golang:1.16-alpine
|
||||||
RUN apk add --no-cache bash
|
RUN apk add --no-cache bash
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
VOLUME /sorted
|
VOLUME /sorted
|
||||||
|
|||||||
Reference in New Issue
Block a user