Skip to content

Commit 7010ee2

Browse files
committed
move path via WORKDIR for the archive creation
1 parent 277c83d commit 7010ee2

File tree

1 file changed

+2
-25
lines changed

1 file changed

+2
-25
lines changed

Dockerfile

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,10 @@ RUN yum update -y
88
RUN yum groupinstall -y "Development Tools"
99
RUN yum install -y cmake
1010

11-
# # Update package manager and install necessary dependencies
12-
# RUN yum update -y && \
13-
# yum install -y gcc-c++ make openssl-devel
14-
15-
# # Download and install CMake
16-
# RUN curl -LO https://github.com/Kitware/CMake/releases/download/v3.26.3/cmake-3.26.3.tar.gz && \
17-
# tar -xzvf cmake-3.26.3.tar.gz && \
18-
# cd cmake-3.26.3 && \
19-
# ./bootstrap --system-curl && \
20-
# make -j$(nproc) && \
21-
# make install
22-
23-
# # Cleanup
24-
# RUN rm -rf cmake-3.26.3 cmake-3.26.3.tar.gz
25-
26-
# # Set PATH environment variable to include CMake
27-
# ENV PATH="/usr/local/bin:${PATH}"
28-
2911
RUN make all
3012

31-
RUN ls -la /build/
32-
RUN ls -la /build/build/
33-
34-
RUN ls -la /opt/
35-
RUN ls -la /opt/*/
36-
37-
RUN zip -r /build/imagemagick-layer.zip /opt/
13+
WORKDIR /opt
14+
RUN zip -r /build/imagemagick-layer.zip .
3815

3916
RUN mkdir /dist && \
4017
echo "cp /build/imagemagick-layer.zip /dist/imagemagick-layer.zip" > /entrypoint.sh && \

0 commit comments

Comments
 (0)