fix(docker): added Spotify env variables and Ffmpeg binary to Dockerfile

This commit is contained in:
0xiamsanj 2025-09-22 01:00:22 +05:30
parent e51b06c159
commit ef71a970d9
2 changed files with 7 additions and 4 deletions

View file

@ -19,6 +19,7 @@ WORKDIR /home/seek-tune
COPY server/go.mod server/go.sum ./ COPY server/go.mod server/go.sum ./
RUN go mod download RUN go mod download
RUN apt-get update && apt-get install -y ffmpeg
COPY server/ ./ COPY server/ ./
ENV ENV=production ENV ENV=production
@ -30,4 +31,4 @@ RUN go build -o seek-tune
EXPOSE 5000 EXPOSE 5000
CMD [ "/home/seek-tune/seek-tune", "serve" ] CMD [ "/home/seek-tune/seek-tune", "serve" ]

View file

@ -1,4 +1,4 @@
version: '3.1' version: "3.1"
volumes: volumes:
seek-tune-db: seek-tune-db:
@ -6,7 +6,7 @@ volumes:
services: services:
seek-tune: seek-tune:
image: 'seek-tune' image: "seek-tune"
restart: unless-stopped restart: unless-stopped
ports: ports:
- 8080:5000 - 8080:5000
@ -20,6 +20,8 @@ services:
DB_PORT: ${DB_PORT:-27017} DB_PORT: ${DB_PORT:-27017}
REACT_APP_BACKEND_URL: ${REACT_APP_BACKEND_URL:-http://localhost:8080} REACT_APP_BACKEND_URL: ${REACT_APP_BACKEND_URL:-http://localhost:8080}
SPOTIFY_CLIENT_ID: ${SPOTIFY_CLIENT_ID}
SPOTIFY_CLIENT_SECRET: ${SPOTIFY_CLIENT_SECRET}
build: build:
context: . context: .
@ -28,4 +30,4 @@ services:
volumes: volumes:
- seek-tune-db:/home/seek-tune/db - seek-tune-db:/home/seek-tune/db
- seek-tune-songs:/home/seek-tune/songs - seek-tune-songs:/home/seek-tune/songs