Juho Inkinen commited on
Commit
7572702
1 Parent(s): be87bdc

Add "user" in Docker container; copy data to image

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -0
Dockerfile CHANGED
@@ -1,3 +1,13 @@
1
  FROM quay.io/natlibfi/annif:1.0
2
 
 
 
 
 
 
 
 
 
 
 
3
  CMD ["gunicorn", "annif:create_app()", "--bind", "0.0.0.0:7860"]
 
1
  FROM quay.io/natlibfi/annif:1.0
2
 
3
+ # Set up a new user named "user" with user ID 1000
4
+ USER root
5
+ RUN useradd -m -u 1000 user
6
+
7
+ # Switch to the "user" user
8
+ USER user
9
+
10
+ COPY --chown=user:user projects.toml .
11
+ COPY --chown=user:user data/vocabs data/vocabs
12
+
13
  CMD ["gunicorn", "annif:create_app()", "--bind", "0.0.0.0:7860"]