forked from atmoz/sftp
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
69 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,19 @@ | ||
FROM alpine:latest | ||
MAINTAINER Adrian Dvergsdal [atmoz.net] | ||
FROM golang:1.13-alpine | ||
|
||
LABEL maintainer="Miguel Angel <[email protected]>" | ||
|
||
ENV GOPATH /go | ||
ENV CGO_ENABLED 0 | ||
ENV GO111MODULE on | ||
ENV MC_RELEASE RELEASE.2019-10-09T22-54-57Z | ||
|
||
RUN \ | ||
apk add --no-cache git && \ | ||
git clone https://github.com/minio/mc && cd mc && \ | ||
git checkout ${MC_RELEASE} && \ | ||
go install -v -ldflags "$(go run buildscripts/gen-ldflags.go)" | ||
|
||
FROM alpine:latest | ||
# Steps done in one RUN layer: | ||
# - Install packages | ||
# - Fix default group (1000 does not exist) | ||
|
@@ -14,6 +27,7 @@ RUN echo "@community http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /et | |
|
||
COPY files/sshd_config /etc/ssh/sshd_config | ||
COPY files/create-sftp-user /usr/local/bin/ | ||
COPY --from=0 /go/bin/mc /usr/local/bin/ | ||
COPY files/entrypoint / | ||
|
||
EXPOSE 22 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters