mirror of
https://github.com/interdotlink/ripe-updater.git
synced 2024-05-06 15:54:57 +00:00
18 lines
397 B
Docker
18 lines
397 B
Docker
FROM python:3.10-alpine
|
|
|
|
RUN apk add --no-cache gcc
|
|
RUN addgroup -S ripeupdater && adduser -S ripeupdater -G ripeupdater
|
|
|
|
USER ripeupdater
|
|
|
|
WORKDIR /opt/ripeupdater/
|
|
|
|
COPY requirements.txt ./
|
|
RUN pip install -Ur requirements.txt
|
|
|
|
COPY ripeupdater ./ripeupdater/
|
|
|
|
COPY docker-entrypoint.sh /usr/local/bin/
|
|
ENTRYPOINT ["docker-entrypoint.sh"]
|
|
CMD python -m gunicorn -b :80 -w 2 ripeupdater.main:app
|