Skip to content

Commit

Permalink
Improve Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Jun 24, 2024
1 parent c22696a commit ea85d32
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .docker/alpine.docker
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,17 @@ ARG REGISTRY="docker.io"

## BUILDER #####################################################################

FROM golang:alpine3.17 as builder
FROM ${REGISTRY}/essentialkaos/golang:alpine3.18 as builder

WORKDIR /go/src/github.com/essentialkaos/subdy

COPY . .

# hadolint ignore=DL3018
RUN apk add --no-cache git make && make deps && make all
RUN make deps && make all

## FINAL IMAGE #################################################################

FROM ${REGISTRY}/essentialkaos/alpine:3.17
FROM ${REGISTRY}/essentialkaos/alpine:3.18

LABEL org.opencontainers.image.title="subdy" \
org.opencontainers.image.description="CLI for subdomain.center API" \
Expand Down

0 comments on commit ea85d32

Please sign in to comment.