mirror of
https://github.com/appleboy/drone-scp.git
synced 2026-06-04 18:23:59 +08:00
691ddecf48
- Update the `go-version` to `^1` in the `.github/workflows/lint.yml` file - Change the container in the `.github/workflows/lint.yml` file from `golang:1.20-alpine` to `golang:1.21-alpine` - Update the base image in the `docker/Dockerfile` file from `alpine:3.19` to `alpine:3.17` Signed-off-by: appleboy <appleboy.tw@gmail.com>
35 lines
695 B
Docker
35 lines
695 B
Docker
FROM alpine:3.17
|
|
|
|
ARG TARGETOS
|
|
ARG TARGETARCH
|
|
|
|
LABEL maintainer="Bo-Yi Wu <appleboy.tw@gmail.com>"
|
|
|
|
LABEL org.opencontainers.image.source=https://github.com/appleboy/drone-scp
|
|
LABEL org.opencontainers.image.description="Copy files and artifacts via SSH"
|
|
LABEL org.opencontainers.image.licenses=MIT
|
|
|
|
RUN apk add --no-cache ca-certificates && \
|
|
rm -rf /var/cache/apk/*
|
|
|
|
RUN addgroup \
|
|
-S -g 1000 \
|
|
deploy && \
|
|
adduser \
|
|
-S -H -D \
|
|
-h /home/deploy \
|
|
-s /bin/sh \
|
|
-u 1000 \
|
|
-G deploy \
|
|
deploy
|
|
|
|
RUN mkdir -p /home/deploy && \
|
|
chown deploy:deploy /home/deploy
|
|
|
|
# deploy:deploy
|
|
USER 1000:1000
|
|
|
|
COPY release/${TARGETOS}/${TARGETARCH}/drone-scp /bin/
|
|
|
|
ENTRYPOINT ["/bin/drone-scp"]
|