Skip to content
Snippets Groups Projects
Select Git revision
  • c3b24b1071af1153734f6aff6b29e21f22430ce1
  • main default protected
  • 21-replace-mongodb-deployment-with-statefulset
  • 20-repackage-application-with-a-helm-chart
  • 20-repackage-application-with-a-helm-chart-2
  • 19-run-the-application-on-kubernetes-locally-using-minikube
  • 17-exercise-3-scaling-mandatory-features-2
  • 18-exercise-3-scaling-additional-features
  • 17-exercise-3-scaling-mandatory-features
  • 15-secure-database
  • 14-containerize-application
  • 12-write-deployment-and-usage-instructions
  • 12-write-deployment-and-usage-instructions-2
13 results

Dockerfile

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Dockerfile 406 B
    # We're taking the latest Alpine version, because it's the smallest
    # and has the least amount of dependencies
    FROM alpine:latest
    
    # Set working directory.
    WORKDIR /app
    
    # Copy the current directory contents (whole project) into the container at /app
    ADD . /app
    
    # Install dependencies
    RUN apk update && \
        apk add --no-cache nodejs npm && \
        npm install;
    
    # Run the app
    ENTRYPOINT ["node", "server"]