Spaces:
Sleeping
Sleeping
OnlyBiggg
commited on
Commit
·
e5300c2
1
Parent(s):
8c09fcd
fix
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
|
@@ -1,5 +1,7 @@
|
|
| 1 |
FROM python:3.10.4
|
| 2 |
|
|
|
|
|
|
|
| 3 |
ENV API_BASE_URL 'https://api-dev.futabus.vn'
|
| 4 |
ENV API_ACCESS_TOKEN 'https://api-dev.futabus.vn/identity/api/token/anonymous-token'
|
| 5 |
ENV ENVIRONMENT 'dev'
|
|
@@ -9,7 +11,7 @@ COPY . .
|
|
| 9 |
WORKDIR /
|
| 10 |
|
| 11 |
RUN mkdir -p /log
|
| 12 |
-
RUN chown
|
| 13 |
RUN chmod 755 /log
|
| 14 |
|
| 15 |
RUN pip install --no-cache-dir --upgrade -r /requirements.txt
|
|
|
|
| 1 |
FROM python:3.10.4
|
| 2 |
|
| 3 |
+
RUN useradd -m appuser
|
| 4 |
+
|
| 5 |
ENV API_BASE_URL 'https://api-dev.futabus.vn'
|
| 6 |
ENV API_ACCESS_TOKEN 'https://api-dev.futabus.vn/identity/api/token/anonymous-token'
|
| 7 |
ENV ENVIRONMENT 'dev'
|
|
|
|
| 11 |
WORKDIR /
|
| 12 |
|
| 13 |
RUN mkdir -p /log
|
| 14 |
+
RUN chown appuser:appuser /log
|
| 15 |
RUN chmod 755 /log
|
| 16 |
|
| 17 |
RUN pip install --no-cache-dir --upgrade -r /requirements.txt
|