:link: A Flask and Redis based fast, feature rich and free URL shortener site. https://keeplink.in
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 448B

  1. # Alpine
  2. FROM python:3.7-alpine
  3. RUN apk add --update gcc bash libc-dev fortify-headers linux-headers && rm -rf /var/cache/apk/*
  4. RUN mkdir -p /home/app
  5. COPY ./run /home/app
  6. COPY requirements.txt /home/app
  7. RUN mkdir -p /home/app/keeplinkin
  8. ADD keeplinkin /home/app/keeplinkin
  9. WORKDIR /home/app
  10. RUN pip install -r requirements.txt
  11. ENV PYTHONPATH=/home/app
  12. ENV REDIS_HOST=redis
  13. EXPOSE 8000
  14. RUN chmod +x /home/app/run
  15. ENTRYPOINT ["/home/app/run"]