Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
# Use a specific version of the node image as a base
|
2 |
FROM node:16-alpine
|
3 |
|
4 |
-
# Install OpenJDK (Java)
|
5 |
-
RUN apk add --no-cache python3 py3-pip g++
|
6 |
|
7 |
# Set working directory
|
8 |
WORKDIR /code
|
@@ -14,7 +14,7 @@ RUN npm install --production
|
|
14 |
# Copy the rest of the application files
|
15 |
COPY . .
|
16 |
|
17 |
-
# Create a directory for temporary
|
18 |
RUN mkdir -p /code/temp && \
|
19 |
chmod 777 /code/temp
|
20 |
|
@@ -26,3 +26,4 @@ USER node
|
|
26 |
|
27 |
# Start Node.js application
|
28 |
CMD ["node", "index.js"]
|
|
|
|
1 |
# Use a specific version of the node image as a base
|
2 |
FROM node:16-alpine
|
3 |
|
4 |
+
# Install OpenJDK (Java), Python 3, pip, and g++
|
5 |
+
RUN apk add --no-cache openjdk11 python3 py3-pip g++
|
6 |
|
7 |
# Set working directory
|
8 |
WORKDIR /code
|
|
|
14 |
# Copy the rest of the application files
|
15 |
COPY . .
|
16 |
|
17 |
+
# Create a directory for temporary files
|
18 |
RUN mkdir -p /code/temp && \
|
19 |
chmod 777 /code/temp
|
20 |
|
|
|
26 |
|
27 |
# Start Node.js application
|
28 |
CMD ["node", "index.js"]
|
29 |
+
|