diff options
author | JJ | 2024-07-19 21:48:26 +0000 |
---|---|---|
committer | JJ | 2024-07-19 21:48:26 +0000 |
commit | 91664d4859250c3f48aba988a871ef67e467d519 (patch) | |
tree | b7ea12bcd264ec0e72c75fad1c72f4dba779f679 /Dockerfile | |
parent | ec6f7ca5a9ea9f960b8f3a960e056d9ffbf0422d (diff) |
docker lint
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ # Build backend with go -FROM golang:1.20 AS BACKEND_BUILDER +FROM golang:1.20 AS backend_builder # Install tools and libraries RUN apt-get update && \ @@ -17,7 +17,7 @@ RUN export VERSION=$(git describe --tags --abbrev=0) && \ cp -r caronte pcaps/ scripts/ shared/ test_data/ build/ # Build frontend via yarn -FROM node:16 as FRONTEND_BUILDER +FROM node:16 AS frontend_builder ENV PNPM_VERSION 8.3.1 RUN npm install -g pnpm@${PNPM_VERSION} WORKDIR /caronte-frontend @@ -31,8 +31,8 @@ RUN pnpm install && pnpm build # LAST STAGE FROM ubuntu:22.04 -COPY --from=BACKEND_BUILDER /caronte/build /opt/caronte -COPY --from=FRONTEND_BUILDER /caronte-frontend/build /opt/caronte/frontend/build +COPY --from=backend_builder /caronte/build /opt/caronte +COPY --from=frontend_builder /caronte-frontend/build /opt/caronte/frontend/build RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive apt-get install -qq \ libpcap-dev \ |