-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAuthFlow.Dockerfile
42 lines (37 loc) · 2.48 KB
/
AuthFlow.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
39
40
41
42
#----------------------------------------------------------------------------------------------------
# Pull latest stable Ubuntu
#----------------------------------------------------------------------------------------------------
FROM ubuntu:20.04
LABEL org.opencontainers.image.source = "/~https://github.com/matamorphosis/GDrive-Access-Governance"
#----------------------------------------------------------------------------------------------------
#----------------------------------------------------------------------------------------------------
# Update repos and install required packages
#----------------------------------------------------------------------------------------------------
RUN apt update
ARG DEBIAN_FRONTEND=noninteractive
#----------------------------------------------------------------------------------------------------
#----------------------------------------------------------------------------------------------------
# Change region as required and install packages
#----------------------------------------------------------------------------------------------------
ENV TZ=Australia/Sydney
RUN apt update
RUN apt install -y tzdata python3 python3-pip curl ncat
#----------------------------------------------------------------------------------------------------
#----------------------------------------------------------------------------------------------------
# Clone repository and create necessary directories
#----------------------------------------------------------------------------------------------------
WORKDIR /
COPY ./ /
#----------------------------------------------------------------------------------------------------
#----------------------------------------------------------------------------------------------------
# Install online packages from requirements.txt file
#----------------------------------------------------------------------------------------------------
RUN pip3 install -r /installation/requirements.txt
#----------------------------------------------------------------------------------------------------
#----------------------------------------------------------------------------------------------------
# Start GDAG Auth Flow Server
#----------------------------------------------------------------------------------------------------
RUN chmod +x /installation/docker/*start.sh
WORKDIR /app
CMD ["bash", "/installation/docker/auth-flow-start.sh"]
#----------------------------------------------------------------------------------------------------