From 40f84ca02e9532a8dfc0f54d6df985b3307f6e8a Mon Sep 17 00:00:00 2001 From: Mohammad Ahtasham ul Hassan Date: Mon, 12 Dec 2022 17:00:14 +0500 Subject: [PATCH] fix: add k8s target --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Dockerfile b/Dockerfile index e4181b921d5..6b2d3398e54 100644 --- a/Dockerfile +++ b/Dockerfile @@ -54,6 +54,7 @@ RUN npm install --production && ./node_modules/.bin/bower install --allow-root - # Expose canonical Discovery port EXPOSE 18381 +EXPOSE 8381 FROM app as prod @@ -89,3 +90,9 @@ RUN touch ${DISCOVERY_APP_DIR}/discovery_env COPY . . CMD while true; do python ./manage.py runserver 0.0.0.0:8381; sleep 2; done + +########################################################### +# Define k8s target +FROM prod as kubernetes +ENV DISCOVERY_SETTINGS='kubernetes' +ENV DJANGO_SETTINGS_MODULE="course_discovery.settings.$DISCOVERY_SETTINGS" \ No newline at end of file