From 221697e599af65b3c6aea608388efaad77f8f84e Mon Sep 17 00:00:00 2001 From: jiyungSong Date: Wed, 15 Feb 2023 13:49:56 +0900 Subject: [PATCH] build: update Dockerfile to base image python:3-slim (#6) --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8b44610..fd0a788 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.8 +FROM python:3-slim ENV PYTHONUNBUFFERED 1 ENV SPACEONE_PORT 50051 @@ -6,6 +6,8 @@ ENV SERVER_TYPE grpc ENV PKG_DIR /tmp/pkg ENV SRC_DIR /tmp/src +RUN apt update && apt upgrade -y + COPY pkg/*.txt ${PKG_DIR}/ RUN pip install --upgrade pip && \ pip install --upgrade -r ${PKG_DIR}/pip_requirements.txt && \