Anuj-Panthri commited on
Commit
44204c4
·
1 Parent(s): aee1871

updated user in dockerfile

Browse files
Files changed (2) hide show
  1. Dockerfile +7 -2
  2. README.md +5 -0
Dockerfile CHANGED
@@ -2,11 +2,16 @@ FROM localstack/localstack
2
 
3
  # RUN useradd -m -u 1000 postgres
4
 
 
 
5
  USER root
6
 
7
- RUN chown -R root:root /var/lib
8
- RUN chown -R root:root /tmp
 
9
 
10
  WORKDIR /app
11
 
 
 
12
  EXPOSE 4566
 
2
 
3
  # RUN useradd -m -u 1000 postgres
4
 
5
+ # RUN usermod -u 1000 root
6
+
7
  USER root
8
 
9
+
10
+ RUN chown -R localstack:localstack /var/lib
11
+ RUN chown -R localstack:localstack /tmp
12
 
13
  WORKDIR /app
14
 
15
+ USER localstack
16
+
17
  EXPOSE 4566
README.md CHANGED
@@ -9,3 +9,8 @@ app_port: 4566
9
  ---
10
 
11
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
9
  ---
10
 
11
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
12
+
13
+ ```bash
14
+ docker build -t localstack_local .
15
+ docker run -it --rm --name localstack_container localstack_local
16
+ ```