May 2018
Intermediate to advanced
492 pages
12h 3m
English
In the users directory, create a file named Dockerfile containing the following:
FROM node:10ENV DEBUG="users:*" ENV PORT="3333" ENV SEQUELIZE_CONNECT="sequelize-docker-mysql.yaml" ENV REST_LISTEN="0.0.0.0" RUN mkdir -p /userauthCOPY package.json sequelize-docker-mysql.yaml *.mjs *.js /userauth/WORKDIR /userauthRUN apt-get update -y \ && apt-get -y install curl python build-essential git ca-certificates \ && npm install --unsafe-perm EXPOSE 3333 CMD npm run docker
Dockerfiles describe the installation of an application on a server. See https://docs.docker.com/engine/reference/builder/ for documentation. They document assembly of the bits in a Docker container image, and the instructions in a Dockerfile ...
Read now
Unlock full access