mirror of
https://github.com/marcusDenslow/terminalShop.git
synced 2026-10-25 02:52:20 +02:00
12 lines
243 B
Docker
12 lines
243 B
Docker
FROM golang:alpine AS builder
|
|
WORKDIR /app
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
COPY . .
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -o ssh ./main.go
|
|
|
|
FROM alpine:3.21
|
|
WORKDIR /root/
|
|
COPY --from=builder /app/ssh .
|
|
CMD TERM=xterm-256color ./ssh
|