15 lines
No EOL
310 B
Docker
15 lines
No EOL
310 B
Docker
FROM alpine:latest
|
|
|
|
# Install all necessary tools: git, build tools
|
|
RUN apk add --no-cache \
|
|
git \
|
|
build-base
|
|
|
|
# Create a non-root user to run the build
|
|
RUN adduser -D builder
|
|
USER builder
|
|
WORKDIR /home/builder
|
|
|
|
# The default command will be the build script
|
|
COPY build.sh .
|
|
CMD ["/bin/sh", "build.sh"] |