-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-new
38 lines (24 loc) · 883 Bytes
/
Dockerfile-new
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
FROM debian:bookworm as builder
RUN apt -y update && apt -y install unzip git curl gnat
RUN mkdir -p /usr/local/src/alr
ADD https://github.com/alire-project/alire/releases/download/v1.2.2/alr-1.2.2-bin-x86_64-linux.zip /usr/local/src/alr/alr.zip
RUN cd /usr/local/src/alr && unzip alr.zip && rm -f alr.zip
ENV PATH="$PATH:/usr/local/src/alr/bin"
WORKDIR /root
RUN mkdir -p /root/.config/alire
RUN alr -d get --build gnat_native
RUN alr -d get --build gprbuild
RUN alr toolchain
COPY docker/config.toml /root/.config/alire/
RUN mkdir -p /usr/local/src/codefirst-dockerproxy
WORKDIR /usr/local/src/codefirst-dockerproxy
COPY . .
RUN ls -la
RUN alr -d build
# FROM debian:bookwork
# COPY --from=builder /usr/local/codefirst-dockerproxy/greet /bin/greet
# COPY docker/entrypoint.sh /
# RUN chmod +x /entrypoint.sh
# USER root
# EXPOSE 8080
# ENTRYPOINT [ "/entrypoint.sh" ]