rentease/Dockerfile
Ruidy d4e6b35a96
Create taxes for taxable items automatically (#16)
* refactor return error when building booking service

* fix the description

* set taxable item by amount

* auto create tax items if the item is taxable

* fix linter

* remove legacy tax entry

* display multiple items

* use the price from the form

* improve item sorting

* lintfix
2024-08-26 21:44:31 +02:00

25 lines
518 B
Docker

FROM golang:1.23-alpine AS builder
RUN apk update && apk add --no-cache \
build-base \
ca-certificates \
&& update-ca-certificates
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -a -installsuffix cgo -o /app/dist/rentease main.go
FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /app/dist/rentease /app/dist/rentease
WORKDIR /app
EXPOSE 8000
ENTRYPOINT ["/app/dist/rentease"]