Spaces:
Running
Running
eienmojiki
commited on
Commit
•
e9cf571
1
Parent(s):
f1f47c0
Update Dockerfile
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
FROM buildpack-deps:22.04-curl
|
2 |
|
|
|
|
|
3 |
ENV DEBIAN_FRONTEND=noninteractive \
|
4 |
TZ=Asia/Ho_Chi_Minh \
|
5 |
PORT=7860
|
@@ -76,11 +78,15 @@ RUN sudo apt update && \
|
|
76 |
WORKDIR /home
|
77 |
|
78 |
RUN git clone https://github.com/kogakisaki/koga-2048.git
|
|
|
|
|
79 |
|
80 |
WORKDIR /home/koga-2048
|
81 |
|
82 |
RUN npm install
|
83 |
|
|
|
|
|
84 |
EXPOSE $PORT
|
85 |
|
86 |
CMD ["npm", "run", "start"]
|
|
|
1 |
FROM buildpack-deps:22.04-curl
|
2 |
|
3 |
+
RUN useradd -m -u 1000 koga
|
4 |
+
|
5 |
ENV DEBIAN_FRONTEND=noninteractive \
|
6 |
TZ=Asia/Ho_Chi_Minh \
|
7 |
PORT=7860
|
|
|
78 |
WORKDIR /home
|
79 |
|
80 |
RUN git clone https://github.com/kogakisaki/koga-2048.git
|
81 |
+
RUN chown -R koga: /home/koga-2048 && \
|
82 |
+
chmod 777 /home/koga-2048
|
83 |
|
84 |
WORKDIR /home/koga-2048
|
85 |
|
86 |
RUN npm install
|
87 |
|
88 |
+
USER koga
|
89 |
+
|
90 |
EXPOSE $PORT
|
91 |
|
92 |
CMD ["npm", "run", "start"]
|