Annif / Dockerfile
Juho Inkinen
Add "user" in Docker container; copy data to image
7572702 unverified
raw
history blame
314 Bytes
FROM quay.io/natlibfi/annif:1.0
# Set up a new user named "user" with user ID 1000
USER root
RUN useradd -m -u 1000 user
# Switch to the "user" user
USER user
COPY --chown=user:user projects.toml .
COPY --chown=user:user data/vocabs data/vocabs
CMD ["gunicorn", "annif:create_app()", "--bind", "0.0.0.0:7860"]