March 2020
Intermediate to advanced
392 pages
10h 10m
English
A Dockerfile is used by Docker to create a new image. It contains the instructions you want Docker to execute to get to the final image. To set up Dockerfiles, follow the given steps:
FROM swift:5.1.2 as builder# For local build, add `--build-arg env=docker`# In your application, you can use `Environment.custom(name: "docker")` to check if you're in this envRUN apt-get -qq update && apt-get install -y \ libssl-dev zlib1g-dev \ && rm -r /var/lib/apt/lists/*ARG envRUN mkdir /root/.ssh/RUN apt-get -qq ...
Read now
Unlock full access