Practice / Software

Write a production Dockerfile

Medium · Coding (typed)

Write a Dockerfile for a Node.js API (package.json, package-lock.json, src/, start with node src/server.js on port 8080). It should build fast when only code changes, be small, and not run as root.

Create a free account to answer it and get scored on what a strong answer covers.