forked from Stuartlab-UCSC/hexmap-data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (25 loc) · 830 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
FROM ucschexmap/compute@sha256:05bcd6135022ebe6f851730a25a2c46fba89deebdaa6cd14d58797abd48efff5
# Set up hexmap user
RUN groupadd -g 1304 hexdocker
RUN useradd hexmap -u 30056 -g 1304 -m -s /bin/bash
# Remove legacy app dir
RUN rm -r /usr/src/app
# Make the parent directory for the jobQueue sqlite DB, owned by hexmap
RUN mkdir /usr/src/computeDb
RUN chown hexmap:hexdocker /usr/src/computeDb
# Set up the environment variables
USER hexmap
ENV HEXCALC=/usr/src/app
ENV PYTHONPATH=\
$HEXCALC/calc:\
$HEXCALC/www:\
$HEXCALC/www/util:\
$HEXCALC/www/adapters:\
$HEXCALC/www/cellDb:\
$HEXCALC/www/job:\
$HEXCALC/www/project:\
$HEXCALC/www/upload
WORKDIR /usr/src/app
# TODO: Replace this COPY with a call to download a pinned version of the code from GitHub into /app
COPY --chown=hexmap:hexdocker . /usr/src/app
CMD ["/bin/bash"]