Skip to content

Instantly share code, notes, and snippets.

View gregyjames's full-sized avatar
🔺
Avoiding Frontend

Greg gregyjames

🔺
Avoiding Frontend
View GitHub Profile
We can't make this file beautiful and searchable because it's too large.
Customer,Item
1,citrus fruit
1,margarine
1,ready soups
1,semi-finished bread
2,coffee
2,tropical fruit
2,yogurt
3,whole milk
4,cream cheese
@gregyjames
gregyjames / mingo.dockerfile
Created December 23, 2023 21:10
Minimal size docker file for go
FROM golang:latest as golang
WORKDIR /app
COPY . .
RUN go mod download
RUN go mod verify
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /server .
@gregyjames
gregyjames / tiny.dockerfile
Created December 24, 2023 11:24
Tiniest possible GO Docker image
FROM golang:alpine as golang
# Create appuser (only for scratch)
ENV USER=appuser
ENV UID=10001
RUN adduser \
--disabled-password \
--gecos "" \
--home "/nonexistent" \
--shell "/sbin/nologin" \