mirror of
https://github.com/nkanaev/yarr.git
synced 2025-05-24 00:33:14 +00:00
update dockerfiles
This commit is contained in:
parent
e4f9dc8c72
commit
9fe02931d8
@ -1,13 +1,13 @@
|
|||||||
FROM golang:alpine3.18 AS build
|
FROM golang:alpine3.21 AS build
|
||||||
RUN apk add build-base git
|
RUN apk add build-base git
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/root/go/pkg \
|
RUN --mount=type=cache,target=/root/.cache/go-build \
|
||||||
|
--mount=type=cache,target=/root/go/pkg \
|
||||||
make host
|
make host
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
RUN apk add --no-cache ca-certificates && \
|
RUN apk add --no-cache ca-certificates && update-ca-certificates
|
||||||
update-ca-certificates
|
|
||||||
COPY --from=build /src/out/yarr /usr/local/bin/yarr
|
COPY --from=build /src/out/yarr /usr/local/bin/yarr
|
||||||
EXPOSE 7070
|
EXPOSE 7070
|
||||||
ENTRYPOINT ["/usr/local/bin/yarr"]
|
ENTRYPOINT ["/usr/local/bin/yarr"]
|
||||||
|
@ -12,9 +12,9 @@ RUN env DEBIAN_FRONTEND=noninteractive \
|
|||||||
apt install -y qemu-user qemu-user-static
|
apt install -y qemu-user qemu-user-static
|
||||||
|
|
||||||
# Install Golang
|
# Install Golang
|
||||||
RUN wget --quiet https://go.dev/dl/go1.18.2.linux-amd64.tar.gz && \
|
RUN wget --quiet https://go.dev/dl/go1.24.1.linux-amd64.tar.gz && \
|
||||||
rm -rf /usr/local/go && \
|
rm -rf /usr/local/go && \
|
||||||
tar -C /usr/local -xzf go1.18.2.linux-amd64.tar.gz
|
tar -C /usr/local -xzf go1.24.1.linux-amd64.tar.gz
|
||||||
ENV PATH=$PATH:/usr/local/go/bin
|
ENV PATH=$PATH:/usr/local/go/bin
|
||||||
|
|
||||||
# Copy source code
|
# Copy source code
|
||||||
|
Loading…
x
Reference in New Issue
Block a user