mirror of
https://github.com/restic/rest-server.git
synced 2025-12-06 17:15:45 -08:00
Makefile: add rules for docker image build
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
FROM alpine:3.6
|
||||
|
||||
ENV DATA_DIRECTORY /data
|
||||
ENV PASSWORD_FILE /data/.htpasswd
|
||||
|
||||
RUN apk add --no-cache --update apache2-utils
|
||||
|
||||
COPY rest-server docker/*_user /usr/bin/
|
||||
|
||||
VOLUME /data
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
COPY docker/entrypoint.sh /entrypoint.sh
|
||||
|
||||
CMD [ "/entrypoint.sh" ]
|
||||
@@ -1,11 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
echo "Build binary using golang docker image"
|
||||
docker run --rm -ti \
|
||||
-v `pwd`:/go/src/github.com/restic/rest-server \
|
||||
-w /go/src/github.com/restic/rest-server golang:1.9.1-alpine go run build.go
|
||||
|
||||
echo "Build docker image restic/rest-server:latest"
|
||||
docker build --rm -t restic/rest-server:latest -f docker/Dockerfile .
|
||||
Reference in New Issue
Block a user