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