-
Notifications
You must be signed in to change notification settings - Fork 0
/
directory-docker.yml
47 lines (40 loc) · 1.56 KB
/
directory-docker.yml
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
44
45
46
47
# ---------------------------------
# _____ __ __ ______ _
# / ___// /_ ___ / /________ ____ / ____/__ ______________ ______(_)
# \__ \/ __ \/ _ \/ / ___/ __ \/ __ \ / /_ / _ \/ ___/ ___/ __ `/ ___/ /
# ___/ / / / / __/ (__ ) /_/ / / / / / __/ / __/ / / / / /_/ / / / /
# /____/_/ /_/\___/_/____/\____/_/ /_/ /_/ \___/_/ /_/ \__,_/_/ /_/
# ---------------------------------
# Currency Conversion API - db-docker.yml
# ---------------------------------
# This Dockerfile is responsible for:
# - Generating the project DIRECTORY.md
# ---------------------------------
# ---------------------------------
# Use the OpenJDK 17 base image
# ---------------------------------
FROM openjdk:17-slim
# ---------------------------------
# Install Groovy and Git
# ---------------------------------
RUN apt-get update && apt-get install -y groovy git
# ---------------------------------
# Set the working directory inside the container
# ---------------------------------
WORKDIR /app
# ---------------------------------
# Copy the sys folder to the container
# ---------------------------------
COPY sys ./sys
# ---------------------------------
# Copy the src folder to the container
# ---------------------------------
COPY src ./src
# ---------------------------------
# Give execution permission to the script
# ---------------------------------
RUN chmod +x ./sys/callDirectory.sh
# ---------------------------------
# Command to start the script
# ---------------------------------
CMD ["./sys/callDirectory.sh"]