From 80b6a01a1d6f1d2afb28dca5b860525ebc405abc Mon Sep 17 00:00:00 2001 From: Enrico Stemmer Date: Thu, 12 Oct 2023 21:53:14 +0000 Subject: [PATCH] fixed go build inside docker --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8e899c0..74838ee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,14 @@ FROM golang:1.19 AS build-stage WORKDIR /app -COPY pocketbase/go.mod pocketbase/go.sum ./ +COPY go.mod go.sum ./ RUN go mod download -COPY pocketbase/*.go ./ +COPY *.go ./ RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o ./LocalFileSharing FROM node:20 AS js-base ENV PNPM_HOME="/pnpm" ENV PATH="$PNPM_HOME:$PATH" RUN corepack enable - WORKDIR /app COPY package.json pnpm-lock.yaml ./ RUN pnpm install