Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files12345616 unmodified lines232425262728# Use a specific version of the node image as a baseFROM node:16-alpineRUN apk add --no-cache openjdk11 python3 py3-pip g++# Set working directory16 unmodified lines# Set user to non-rootUSER node# Start Node.js applicationCMD ["node", "index.js"]123456716 unmodified lines24252627282930# Use a specific version of the node image as a baseFROM node:16-alpine# Install necessary dependencies including JDK, Python, pip, and g++RUN apk add --no-cache openjdk11 python3 py3-pip g++# Set working directory16 unmodified lines# Set user to non-rootUSER node# Compile and run Java codeCMD ["sh", "-c", "javac -d /code/temp /code/temp/*.java && java -cp /code/temp Main"]
Dockerfile+4-2