-
-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (17 loc) · 608 Bytes
/
Dockerfile
File metadata and controls
22 lines (17 loc) · 608 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Use an official Python runtime as a base image
FROM python:3.9-alpine
# Install any needed packages specified in requirements.txt
RUN apk add --update ffmpeg
# Clone repo to container
COPY . /savify
WORKDIR /savify
# Install dependencies and setup savify from source
RUN pip3 install requests --upgrade
RUN python3 setup.py install
# Define environment variable as placeholder variables
ENV SPOTIPY_CLIENT_ID=
ENV SPOTIPY_CLIENT_SECRET=
# Execute savify when container is started
ENTRYPOINT ["/usr/local/bin/savify"]
# Automatically print help if container is started without arguments
CMD ["--help"]