Skip to content

Commit

Permalink
dockerfile updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin Lang committed Sep 10, 2024
1 parent 3c19ff7 commit 3b70341
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/solver/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:20.04
FROM ubuntu:22.04

ENV DEBIAN_FRONTEND=noninteractive
RUN apt -y update && apt install -y apt-utils && \
Expand Down
5 changes: 3 additions & 2 deletions docker/webservice/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@ WORKDIR /src/astrometry/net

RUN ln -sf settings_test.py settings.py

ENV PYTHONPATH /src:${PYTHONPATH}
ENV PYTHONPATH=/src:${PYTHONPATH}

RUN mkdir appsecrets && \
touch appsecrets/__init__.py && \
touch appsecrets/auth.py && \
cp appsecrets-example/django.py appsecrets

COPY docker/webservice/django_db.py appsecrets/
#COPY docker/webservice/django_db.py appsecrets/
COPY django_db.py appsecrets/
#RUN (echo -n "DJANGO_SECRET_KEY = '"; tr -dc A-Za-z0-9 </dev/urandom | head -c 52; echo "'") > /src/astrometry/net/appsecrets/django.py

RUN mv migrations/* /tmp && \
Expand Down

0 comments on commit 3b70341

Please sign in to comment.