Skip to content

Commit

Permalink
fix: add k8s target
Browse files Browse the repository at this point in the history
  • Loading branch information
aht007 committed Dec 12, 2022
1 parent c754d20 commit 40f84ca
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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"

0 comments on commit 40f84ca

Please sign in to comment.