-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (28 loc) · 899 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
35
36
37
38
# Core image for PgREST project - Includes files for testing.
# Image: pgrest-api/core
FROM tapis/flaskbase:latest
ENV PYTHONUNBUFFERED 1
ENV DJANGO_ENV dev
ENV DOCKER_CONTAINER 1
ENV TAPIS_API pgrest-api
## FILE INITIALIZATION
COPY ./requirements.txt /home/tapis/requirements.txt
# Installs
RUN pip install -r /home/tapis/requirements.txt
## CODE
COPY configschema.json /home/tapis/configschema.json
COPY ./manage.py /home/tapis/manage.py
COPY pgrest /home/tapis/service/pgrest
COPY pgrest /home/tapis/pgrest
COPY database_tenants /home/tapis/service/database_tenants
COPY database_tenants /home/tapis/database_tenants
COPY paas /home/tapis/service/paas
COPY paas /home/tapis/paas
COPY entry.sh /home/tapis/entry.sh
RUN mkdir /home/tapis/databases
RUN touch /home/tapis/pgrest.log
RUN chmod +x /home/tapis/entry.sh
WORKDIR /home/tapis/
#USER tapis
CMD ["/home/tapis/entry.sh"]
EXPOSE 5000