Skip to content

Commit

Permalink
fixed go build inside docker
Browse files Browse the repository at this point in the history
  • Loading branch information
H3rmt committed Oct 12, 2023
1 parent e29f6e0 commit 80b6a01
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 80b6a01

Please sign in to comment.