Skip to content

Commit 0d19a64

Browse files
committed
Remove packr and optimize docker build
1 parent 10b902f commit 0d19a64

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

api/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ RUN go get github.com/swaggo/swag/gen@latest
1616
RUN go get github.com/swaggo/swag/cmd/swag@latest
1717
RUN go install github.com/swaggo/swag/cmd/swag
1818
RUN swag init
19-
RUN go install github.com/gobuffalo/packr/v2/packr2@latest
20-
RUN packr2
2119

2220
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-X main.Version=$GIT_COMMIT" -o /bin/http-sms .
2321

web/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM node:lts-alpine as build
33

44
WORKDIR /app
55

6-
COPY package*.json ./
6+
COPY package.json pnpm-lock.yaml ./
77

88
# Install pnpm
99
RUN npm install -g pnpm

0 commit comments

Comments
 (0)