Spaces:
Sleeping
Sleeping
adasdasdasdas
commited on
Commit
•
84297a9
1
Parent(s):
a70be42
Create Dockerfile
Browse files- Dockerfile +14 -0
Dockerfile
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM node:18-bullseye-slim
|
2 |
+
RUN apt-get update && \
|
3 |
+
apt-get install -y git
|
4 |
+
RUN git clone https://github.com/bmwm3gtrntrrazor/commandr-proxy.git /app
|
5 |
+
WORKDIR /app
|
6 |
+
RUN chown -R 1000:1000 /app
|
7 |
+
USER 1000
|
8 |
+
RUN npm install
|
9 |
+
COPY Dockerfile greeting.md* .env* ./
|
10 |
+
RUN npx tsc
|
11 |
+
EXPOSE 7860
|
12 |
+
ENV NODE_ENV=production
|
13 |
+
ENV NODE_OPTIONS="--max-old-space-size=12882"
|
14 |
+
CMD [ "node", "dist/index.js" ]
|