Skip to content

Commit

Permalink
Use glibc distro
Browse files Browse the repository at this point in the history
  • Loading branch information
sevein committed Oct 1, 2023
1 parent 96f34d6 commit c64df5a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
FROM node:18 as frontend
WORKDIR /src
COPY ./ui ./ui
RUN yarn --cwd /src/ui install
RUN yarn --cwd /src/ui build
COPY web /src/web
RUN yarn --cwd /src/web install --frozen-lockfile
RUN yarn --cwd /src/web build

FROM golang:1.21.1-alpine AS build
RUN apk add --no-cache ca-certificates git make
WORKDIR /src
COPY ./go.mod ./go.sum ./Makefile ./
COPY ./ ./
COPY --from=frontend /src/public/web ./public/web
COPY . .
RUN make build

FROM alpine:3.18 AS final
RUN apk --no-cache add ca-certificates graphviz
FROM debian:12 AS final
RUN apt-get update && apt-get install --yes --no-install-recommends graphviz ca-certificates && rm -rf /var/lib/apt/lists/*
COPY --from=build /src/dist/amflow /bin/amflow
ENTRYPOINT ["/amflow"]
ENTRYPOINT ["/bin/amflow"]
4 changes: 2 additions & 2 deletions Dockerfile.release
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is used by GoReleaser.
FROM alpine:3.18 AS final
RUN apk --no-cache add ca-certificates graphviz
FROM debian:12 AS final
RUN apt-get update && apt-get install --yes --no-install-recommends graphviz ca-certificates && rm -rf /var/lib/apt/lists/*
COPY amflow /
RUN addgroup -S amflow
RUN adduser -S amflow -G amflow
Expand Down

0 comments on commit c64df5a

Please sign in to comment.