forked from biocompute-objects/bco_api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (23 loc) · 1017 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM ubuntu:22.04
LABEL org.opencontainers.image.source https://github.com/biocompute-objects/bco_api
ENV DEBIAN_FRONTEND=noninteractive
LABEL org.opencontainers.image.source=https://github.com/octocat/my-repo
LABEL org.opencontainers.image.description="My container image"
LABEL org.opencontainers.image.licenses=MIT
# Note that this is just for debug / test purposes; should not be set via the setup for production
# ENV DJANGO_SUPERUSER_PASSWORD="BioCompute123"
# ENV DJANGO_SUPERUSER_USERNAME="BioComputeSuperUser"
# ENV DJANGO_SUPERUSER_EMAIL="BioComputeSuperUser@gwu.edu"
RUN apt-get -qq update && apt-get install -y python3.9 python3-dev python3-pip
RUN python3 -m pip install --upgrade pip
WORKDIR /biocompute_api
COPY requirements.txt .
RUN python3 -m pip install -r requirements.txt
COPY . ./
WORKDIR /biocompute_api/
# RUN python3 manage.py migrate
# RUN python3 manage.py createsuperuser --no-input
EXPOSE 8000
#CMD ["bash"]
ENTRYPOINT ["python3", "manage.py", "runserver"]
CMD ["0.0.0.0:8000"]