Skip to content

Instantly share code, notes, and snippets.

View MDReal32's full-sized avatar
🏠
Working from home

Veys Aliyev MDReal32

🏠
Working from home
  • Baku, Azerbaijan
View GitHub Profile
# FROM means we are using a base image to build our image
# node is the base image we are using
# lts-alpine is the version of node we are using
FROM node:lts-alpine
# WORKDIR sets the working directory for any RUN, CMD, ENTRYPOINT, COPY and ADD instructions that follow it in the Dockerfile
WORKDIR /app
# COPY copies files from the host machine to the container
# package.json is copied to the /app directory in the container
# This file is used to define the services that will be used in the docker-compose command
# Version 3.8 is used to define the version of the compose file
version: "3.8"
# Services are defined here
# Service is a container that will be created by the `docker compose` command
services:
docker-basics-example-project:
# The image that will be used to create the container
build: