Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files18 unmodified lines19202122232425262728297 unmodified lines373839404142434418 unmodified lines# Debug step: list the contents of the /app directoryRUN ls -al /app# Use a smaller base image to reduce the final image sizeFROM alpine:latest# Install ca-certificates to make HTTPS requestsRUN apk --no-cache add ca-certificates# Set the Current Working Directory inside the containerWORKDIR /root/7 unmodified lines# Debug step: list the contents of the /root directory again to confirm permissionsRUN ls -al /root# Expose port 8080 to the outside worldEXPOSE 8080# Command to run the executableCMD ./root/main18 unmodified lines19202122232425262728297 unmodified lines373839404142434445464748495018 unmodified lines# Debug step: list the contents of the /app directoryRUN ls -al /app# Use a debian base image to reduce the final image sizeFROM debian:latest# Install ca-certificates to make HTTPS requestsRUN apt-get update && apt-get install -y ca-certificates# Set the Current Working Directory inside the containerWORKDIR /root/7 unmodified lines# Debug step: list the contents of the /root directory again to confirm permissionsRUN ls -al /root# Debug step: show file informationRUN file /root/main# Ensure we are running as the root userUSER root# Expose port 8080 to the outside worldEXPOSE 8080# Command to run the executableCMD ["/root/main"]
Dockerfile+10-4