File size: 805 Bytes
2d33511
 
 
 
3200146
 
dcb24d4
3200146
2d33511
3200146
 
 
2d33511
3200146
2d33511
3200146
2d33511
 
3200146
 
 
 
 
 
 
 
 
 
2d33511
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
FROM debian:stable

ENV DEBIAN_FRONTEND=noninteractive

# Install dependencies
RUN apt-get update && \
    apt-get install -y wget gnupg git git-lfs && \
    rm -rf /var/lib/apt/lists/*

# Add Amazon Corretto GPG key and repository
RUN wget -O- https://apt.corretto.aws/corretto.key | gpg --dearmor > /usr/share/keyrings/corretto-archive-keyring.gpg && \
    echo "deb [signed-by=/usr/share/keyrings/corretto-archive-keyring.gpg] https://apt.corretto.aws stable main" > /etc/apt/sources.list.d/corretto.list

# Install OpenJDK 21
RUN apt-get update && \
    apt-get install -y java-21-amazon-corretto-jdk && \
    rm -rf /var/lib/apt/lists/*

# Set working directory
WORKDIR /app

# Copy application files
COPY . /app

# Set permissions
RUN chmod -R 777 /app

# Set default command
CMD ["sh", "start.sh"]