Spaces:
Sleeping
Sleeping
Thunderstone
commited on
Commit
•
286b742
1
Parent(s):
759b954
Create Dockerfile
Browse files- Dockerfile +11 -0
Dockerfile
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM node:18-bullseye-slim
|
2 |
+
RUN apt-get update && \
|
3 |
+
apt-get install -y git
|
4 |
+
RUN git clone https://gitgud.io/thunderstone/progy.git /app
|
5 |
+
WORKDIR /app
|
6 |
+
RUN npm install
|
7 |
+
COPY Dockerfile greeting.md* .env* ./
|
8 |
+
RUN npm run build
|
9 |
+
EXPOSE 7860
|
10 |
+
ENV NODE_ENV=production
|
11 |
+
CMD [ "npm", "start" ]
|