Skip to content

Commit

Permalink
fix: use different docker base images
Browse files Browse the repository at this point in the history
  • Loading branch information
skowalak committed Apr 22, 2024
1 parent ac089bf commit e622f30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM node:18-alpine3.18 as web
FROM arm32v7/node:18-alpine3.18 as web
WORKDIR /usr/src/paisa
COPY package.json package-lock.json* ./
RUN npm install
COPY . .
RUN npm run build

FROM golang:1.21-alpine3.18 as go
FROM arm32v7/golang:1.21-alpine3.18 as go
WORKDIR /usr/src/paisa
RUN apk --no-cache add sqlite gcc g++
COPY go.mod go.sum ./
Expand All @@ -14,7 +14,7 @@ COPY . .
COPY --from=web /usr/src/paisa/web/static ./web/static
RUN CGO_ENABLED=1 go build

FROM alpine:3.18
FROM arm32v7/alpine:3.18
RUN apk --no-cache add ca-certificates ledger tzdata
WORKDIR /root/
COPY --from=go /usr/src/paisa/paisa /usr/bin
Expand Down

0 comments on commit e622f30

Please sign in to comment.