Spaces:
Paused
Paused
lain-iwakura
commited on
Commit
•
3c8d1eb
1
Parent(s):
4068629
Create Dockerfile
Browse files- Dockerfile +15 -0
Dockerfile
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM node:20-bullseye-slim
|
2 |
+
RUN apt-get update && \
|
3 |
+
apt-get install -y git
|
4 |
+
EXPOSE 7860
|
5 |
+
WORKDIR /home/node
|
6 |
+
RUN mkdir app && chown node:node app
|
7 |
+
USER node
|
8 |
+
WORKDIR /home/node/app
|
9 |
+
RUN mkdir source_code
|
10 |
+
COPY Dockerfile greeting.md* .env* ./
|
11 |
+
COPY run.sh ./
|
12 |
+
USER root
|
13 |
+
RUN chmod +x ./run.sh
|
14 |
+
USER node
|
15 |
+
CMD ["/bin/bash", "./run.sh"]
|