Skip to content

Commit 1d8f7c1

Browse files
committed
remove multi-stage build
1 parent 8f4c272 commit 1d8f7c1

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

Dockerfile

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
ARG UBUNTU_VERSION=24.04
44

5-
FROM ubuntu:${UBUNTU_VERSION} as build
5+
FROM ubuntu:${UBUNTU_VERSION}
66

77
# Install dependencies
88

@@ -72,23 +72,6 @@ RUN <<EOT bash
7272
mv ${HYPERSCAN_DIR}/build/lib/lib*.a ${INSTALL_DIR}/lib/
7373
EOT
7474

75-
FROM ubuntu:${UBUNTU_VERSION}
76-
77-
# Install dependencies
78-
79-
ENV DEBIAN_FRONTEND noninteractive
80-
81-
# hadolint ignore=DL3008
82-
RUN <<EOT bash
83-
apt-get update
84-
apt-get install -y --no-install-recommends \
85-
build-essential \
86-
ca-certificates \
87-
libpcap-dev \
88-
pkg-config
89-
rm -rf /var/lib/apt/lists/*
90-
EOT
91-
9275
# Install golang
9376

9477
ARG GO_VERSION=1.23.3
@@ -102,10 +85,6 @@ EOT
10285

10386
ENV PATH="/usr/local/go/bin:${PATH}"
10487

105-
ENV INSTALL_DIR=/dist
106-
107-
COPY --from=build ${INSTALL_DIR} ${INSTALL_DIR}
108-
10988
ENV PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:${INSTALL_DIR}/lib/pkgconfig"
11089

11190
# Add gohs code

0 commit comments

Comments
 (0)