Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile 内の 'as' を 'AS' にする #936

Merged
merged 2 commits into from
Jul 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ FROM --platform=$BUILDPLATFORM builder AS builder-ns
RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache/go-build \
go build -o /app/ns -ldflags "-s -w -X main.version=$APP_VERSION -X main.revision=$APP_REVISION" ./cmd

FROM alpine:3 as base
FROM alpine:3 AS base
WORKDIR /app

ARG APP_VERSION=dev
ARG APP_REVISION=local
ENV APP_VERSION=$APP_VERSION
ENV APP_REVISION=$APP_REVISION

FROM base as ns-migrate
FROM base AS ns-migrate

COPY ./migrations/entrypoint.sh ./
COPY ./migrations/schema.sql ./
Expand All @@ -50,20 +50,20 @@ FROM base AS ns
COPY --from=builder-ns /app/ns ./
ENTRYPOINT ["/app/ns"]

FROM ns as ns-auth-dev
FROM ns AS ns-auth-dev
ENTRYPOINT ["/app/ns", "auth-dev"]

FROM ns as ns-builder
FROM ns AS ns-builder
ENTRYPOINT ["/app/ns", "builder"]

FROM ns as ns-controller
FROM ns AS ns-controller
ENTRYPOINT ["/app/ns", "controller"]

FROM ns as ns-gateway
FROM ns AS ns-gateway
ENTRYPOINT ["/app/ns", "gateway"]

FROM ns as ns-gitea-integration
FROM ns AS ns-gitea-integration
ENTRYPOINT ["/app/ns", "gitea-integration"]

FROM ns as ns-ssgen
FROM ns AS ns-ssgen
ENTRYPOINT ["/app/ns", "ssgen"]
Loading