mirror of
https://github.com/Smaug123/static-site-pipeline
synced 2025-10-10 18:28:53 +00:00
Initial commit of new flow
This commit is contained in:
13
docker/load/Dockerfile
Normal file
13
docker/load/Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM alpine:3.13.5
|
||||
|
||||
COPY "build.sh" "/build.sh"
|
||||
RUN chmod +x /build.sh && \
|
||||
mkdir /sentinels && \
|
||||
chmod a+rwx /sentinels && \
|
||||
addgroup -S load && adduser -S load -G load && \
|
||||
mkdir /output && \
|
||||
chown load /output
|
||||
|
||||
USER load
|
||||
|
||||
ENTRYPOINT []
|
10
docker/load/build.sh
Executable file
10
docker/load/build.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
rm -f /sentinels/load.txt
|
||||
|
||||
rm -rf -- /output/*
|
||||
cp -Rf /git/. /output || exit 1
|
||||
|
||||
chmod -R a+rw /output || exit 1
|
||||
|
||||
touch /sentinels/load.txt
|
Reference in New Issue
Block a user