docker / getting-started

Getting started with Docker
Apache License 2.0
2.91k stars 6.4k forks source link

Created docker file for correct installation of docker container #397

Open AndresDiagoM opened 1 year ago

AndresDiagoM commented 1 year ago

This pull request updates the Dockerfile in the repository to ensure a correct installation of the Docker container.

The original tutorial was written with the intent of helping users get started with containers using Docker Desktop. However, to avoid potential errors related to incompatible node and python versions, this pull request modifies the Dockerfile as follows:


# syntax=docker/dockerfile:1
FROM node:18-alpine
RUN apk add --no-cache python3 g++ make
WORKDIR /app
COPY . .
RUN yarn install --production
CMD ["node", "src/index.js"]