Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize Dockerfile #706

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 7 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,20 @@ ARG DEBIAN_FRONTEND=noninteractive

LABEL org.opencontainers.image.authors="Sebastian Sasu <sebi@nologin.ro>, Cristian Magherusan-Stanciu <cmagh@amazon.de>, Brooke McKim <brooke@vantage.sh>"

RUN apt-get update
RUN apt-get install -y python3 pip locales
RUN apt-get install -y nodejs
RUN apt-get install -y npm
RUN apt-get update && \
apt-get install -y python3 pip locales \
nodejs \
npm && \
rm -rf /var/lib/apt/lists/*
RUN npm install --global sass
RUN python3 -m pip install -U pip setuptools
RUN python3 -m pip install --no-cache-dir -U pip setuptools
RUN locale-gen "en_US.UTF-8"

WORKDIR /opt/app

COPY . .

RUN pip3 install -r requirements.txt
RUN pip3 install --no-cache-dir -r requirements.txt
RUN invoke build

EXPOSE 8080
Expand Down