From 451612fd48148becaa6710614316f2a3c40ebd6e Mon Sep 17 00:00:00 2001 From: Adam Leskis Date: Wed, 11 Nov 2020 19:58:20 +0000 Subject: [PATCH] remove unnecessary commands these lines aren't needed anymore, and add extra layers to the final image. --- compose/django.md | 1 - compose/rails.md | 1 - 2 files changed, 2 deletions(-) diff --git a/compose/django.md b/compose/django.md index 372d55d63e..513d429f35 100644 --- a/compose/django.md +++ b/compose/django.md @@ -28,7 +28,6 @@ and a `docker-compose.yml` file. (You can use either a `.yml` or `.yaml` extensi ```dockerfile FROM python:3 ENV PYTHONUNBUFFERED=1 - RUN mkdir /code WORKDIR /code COPY requirements.txt /code/ RUN pip install -r requirements.txt diff --git a/compose/rails.md b/compose/rails.md index 606916e9e1..8d279c72bd 100644 --- a/compose/rails.md +++ b/compose/rails.md @@ -15,7 +15,6 @@ Dockerfile consists of: FROM ruby:2.5 RUN apt-get update -qq && apt-get install -y nodejs postgresql-client - RUN mkdir /myapp WORKDIR /myapp COPY Gemfile /myapp/Gemfile COPY Gemfile.lock /myapp/Gemfile.lock