Skip to content
Snippets Groups Projects
Dockerfile 339 B
Newer Older
  • Learn to ignore specific revisions
  • Robert Goldmann's avatar
    Robert Goldmann committed
    FROM python:3.7-alpine
    
    
    Robert Goldmann's avatar
    Robert Goldmann committed
    RUN apk add --update gcc libc-dev linux-headers && rm -rf /var/cache/apk/*
    
    
    Robert Goldmann's avatar
    Robert Goldmann committed
    RUN pip install pipenv
    COPY . /opt/SpotifyBackup
    
    WORKDIR /opt/SpotifyBackup
    RUN pipenv install
    RUN ln -s $(pipenv --venv) /opt/SpotifyBackup/mypipenv
    
    CMD [ "/opt/SpotifyBackup/mypipenv/bin/python", "/opt/SpotifyBackup/SpotifyBackup.py" ]