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:
2022-01-15 01:39:21 +01:00
2 changed files with 12 additions and 6 deletions

View File

@@ -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

2
go.mod
View File

@@ -1,6 +1,6 @@
module music-server module music-server
go 1.15 go 1.16
require ( require (
github.com/gorilla/mux v1.8.0 github.com/gorilla/mux v1.8.0