Spaces:
Running
Running
eienmojiki
commited on
Commit
•
d4cebe0
1
Parent(s):
fbcf5d4
Update Dockerfile
Browse files- Dockerfile +11 -2
Dockerfile
CHANGED
@@ -3,7 +3,8 @@ FROM buildpack-deps:22.04-curl
|
|
3 |
ENV DEBIAN_FRONTEND=noninteractive \
|
4 |
TZ=Asia/Ho_Chi_Minh \
|
5 |
PORT=7860 \
|
6 |
-
HOME=/home/koga
|
|
|
7 |
|
8 |
RUN useradd -m -u 1000 koga
|
9 |
|
@@ -76,4 +77,12 @@ RUN rm -fr /tmp/Python-3.10.12 && \
|
|
76 |
RUN sudo apt update && \
|
77 |
sudo apt install -y python3-venv python3-pip
|
78 |
|
79 |
-
WORKDIR /
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
ENV DEBIAN_FRONTEND=noninteractive \
|
4 |
TZ=Asia/Ho_Chi_Minh \
|
5 |
PORT=7860 \
|
6 |
+
HOME=/home/koga \
|
7 |
+
PATH=/home/koga/.local/bin:$PATH
|
8 |
|
9 |
RUN useradd -m -u 1000 koga
|
10 |
|
|
|
77 |
RUN sudo apt update && \
|
78 |
sudo apt install -y python3-venv python3-pip
|
79 |
|
80 |
+
WORKDIR $HOME/app
|
81 |
+
|
82 |
+
COPY --chown=koga . $HOME/app
|
83 |
+
|
84 |
+
RUN npm install
|
85 |
+
|
86 |
+
EXPOSE 7860
|
87 |
+
|
88 |
+
CMD ["node", "server.js"]
|