Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +6 -6
Dockerfile
CHANGED
|
@@ -7,15 +7,15 @@ RUN apk add --no-cache git bash
|
|
| 7 |
# Set working directory
|
| 8 |
WORKDIR /app
|
| 9 |
|
| 10 |
-
# Clone your repo
|
| 11 |
RUN git clone https://github.com/EMMYHENZ-TECH/flasher . && \
|
| 12 |
-
rm -rf .git && \
|
| 13 |
-
npm install --production
|
| 14 |
|
| 15 |
-
# Copy .env
|
| 16 |
-
# COPY .env .env
|
| 17 |
|
| 18 |
-
# Set
|
| 19 |
ENV PORT=7860
|
| 20 |
EXPOSE 7860
|
| 21 |
|
|
|
|
| 7 |
# Set working directory
|
| 8 |
WORKDIR /app
|
| 9 |
|
| 10 |
+
# Clone your repo and install production dependencies
|
| 11 |
RUN git clone https://github.com/EMMYHENZ-TECH/flasher . && \
|
| 12 |
+
rm -rf .git && \
|
| 13 |
+
npm install --production
|
| 14 |
|
| 15 |
+
# Optional: Copy .env file (uncomment if needed)
|
| 16 |
+
# COPY .env .env
|
| 17 |
|
| 18 |
+
# Set environment variable for port (used by Hugging Face)
|
| 19 |
ENV PORT=7860
|
| 20 |
EXPOSE 7860
|
| 21 |
|