From 5b06e86a8a4c5d5a3c21a61c29232f6c9c3b392e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= Date: Sun, 2 Jan 2022 02:38:00 +0100 Subject: [PATCH] Update Dockerfile --- Dockerfile | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7ec9175..de06d39 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,4 @@ -# We need gcc and build-essential to install our requirements but we -# don't need them when run the bot so we can selectively copy artifacts -# from this stage (compile-image) to second one (runtime-image), leaving -# behind everything we don't need in the final build. -FROM python:3.9-slim AS compile-image +FROM python:3.9-slim # We don't want apt-get to interact with us, # and we want the default answers to be used for all questions. @@ -19,8 +15,7 @@ ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONUNBUFFERED 1 # Update packages and install needed packages to build our requirements. -RUN apt-get update && \ - apt-get install -y --no-install-recommends build-essential gcc git curl +RUN apt-get update && apt-get install -y --no-install-recommends build-essential gcc git curl # Create user so we don't run as root. RUN useradd --create-home botuser