-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
43 lines (30 loc) · 1.04 KB
/
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
43
FROM maven:3.6-jdk-11
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get -y install --no-install-recommends python3 2>&1 \
&& apt-get -y install --no-install-recommends apt-utils dialog 2>&1 \
&& apt-get -y install git procps lsb-release \
&& apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
# Copy build files into docker container
COPY ./Backend Backend
COPY ./services services
COPY ./concierge concierge
# Build Concierge Backend
RUN cd /Backend && mvn package -DskipTests
# Build Concierge Services API
RUN cd ..
RUN cd /services && mvn package -DskipTests
RUN cd ..
# Give execution permission to Concierge Backend start script
RUN chmod u+x /Backend/backend
# Give execution permission to Concierge Services API start script
RUN chmod u+x /services/services
# Give execution permission for the Concierge start script (starts the backend and the services API)
RUN chmod u+x concierge
ENV DEBIAN_FRONTEND=
# Concierge Backend Port
EXPOSE 8100
# Concierge Services API port
EXPOSE 8080