-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·40 lines (31 loc) · 1.06 KB
/
Dockerfile
File metadata and controls
executable file
·40 lines (31 loc) · 1.06 KB
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
39
40
FROM almalinux:9
LABEL description="Visgence Inc <info@visgence.com>"
RUN systemctl mask firewalld.service
RUN yum install -y epel-release
RUN yum install -y screen git
RUN yum install -y make automake gcc gcc-c++ && yum clean all
RUN yum install -y postgresql-devel
RUN yum install -y python3-devel python3-setuptools
RUN yum install -y postgresql && yum clean all
RUN dnf update -y && dnf clean all
RUN dnf install -y mlocate python3-pip
RUN dnf install -y nodejs
RUN updatedb
RUN adduser --uid 1000 timeclock
#PIP Stuff
RUN ln -fs /usr/bin/python3 /usr/bin/python
RUN ln -fs /usr/bin/pip3 /usr/bin/pip
COPY ./requirements.txt /tmp/
COPY ./run.sh /home/timeclock/timeclock/
RUN pip3 install -r /tmp/requirements.txt
## Set up files and local settings
RUN chmod u+x /home/timeclock/timeclock/run.sh
RUN chown -R timeclock:timeclock /home/timeclock/timeclock/*
RUN mkdir /home/timeclock/.npm
RUN chown -R timeclock:timeclock /home/timeclock/.npm
USER timeclock
WORKDIR /home/timeclock/timeclock/
VOLUME ["/home/timeclock/timeclock"]
EXPOSE 8000
USER timeclock
CMD ["/bin/bash"]