Update Dockerfile
Browse files- Dockerfile +7 -4
Dockerfile
CHANGED
|
@@ -30,8 +30,11 @@ RUN yarn install --production --registry https://registry.npmmirror.com/
|
|
| 30 |
# Create the log directory and grant write permissions
|
| 31 |
RUN mkdir -p /app/logs && chmod 777 /app/logs
|
| 32 |
|
| 33 |
-
#
|
| 34 |
-
|
| 35 |
|
| 36 |
-
#
|
| 37 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
# Create the log directory and grant write permissions
|
| 31 |
RUN mkdir -p /app/logs && chmod 777 /app/logs
|
| 32 |
|
| 33 |
+
# Specify port environment variable
|
| 34 |
+
ENV PORT 7860
|
| 35 |
|
| 36 |
+
# Expose port
|
| 37 |
+
EXPOSE $PORT
|
| 38 |
+
|
| 39 |
+
# Specify the command to be executed when the container starts
|
| 40 |
+
CMD ["node", "dist/index.js", "--port", "7860"]
|