Spaces:
Sleeping
Sleeping
Commit
·
44204c4
1
Parent(s):
aee1871
updated user in dockerfile
Browse files- Dockerfile +7 -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 |
-
|
| 8 |
-
RUN chown -R
|
|
|
|
| 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 |
+
```
|