thoas / picfit

An image resizing server written in Go
http://bit.ly/1E7rSoi
MIT License
2.13k stars 175 forks source link

The latest docker image on docker hub thoas/picfit:0.14.0 only supports arm64 #192

Closed Carbrex closed 7 months ago

Carbrex commented 7 months ago

Please make it support amd64 architecture also? https://hub.docker.com/layers/thoas/picfit/0.14.0/images/sha256-cf6a67224e3abea0ad0d8d0bf27b88a5a4dcb4de2ec89386721727515d2aa444?context=explore

Carbrex commented 7 months ago

Also, here's a dockerfile for alpine image if you plan on adding it

# Build stage
FROM golang:1.22.1-alpine3.19 AS build

RUN apk --no-cache add git make

WORKDIR /opt

RUN git clone --depth 1 https://github.com/thoas/picfit.git
RUN make -C /opt/picfit build

# Runtime stage
FROM alpine:3.19

COPY --from=build /opt/picfit/bin/picfit /picfit

ENTRYPOINT ["/picfit"]
thoas commented 7 months ago

fixed @Carbrex

thank you, didn't know you have to provide the --platform linux/amd64 now.