Skip to content

Commit

Permalink
feat: add alpine base img
Browse files Browse the repository at this point in the history
  • Loading branch information
njfamirm committed Nov 7, 2023
1 parent 3896757 commit 2a34812
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions alpine/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*
30 changes: 30 additions & 0 deletions alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
FROM docker.io/library/alpine:3.17

LABEL org.opencontainers.image.title="alpine"
LABEL org.opencontainers.image.source="https://github.com/Alwatr/containers"
LABEL org.opencontainers.image.description="Minimal Docker image based on Alpine Linux with a complete package index and only 5 MB in size!"
LABEL org.opencontainers.image.authors="Alwatr <[email protected]> (https://alwatr.ir)"
LABEL org.opencontainers.image.licenses="MIT"
LABEL org.opencontainers.image.url="https://github.com/Alwatr/containers/alpine"
LABEL org.opencontainers.image.documentation="https://github.com/Alwatr/containers/alpine/README.md"
LABEL org.opencontainers.image.vendor="Alwatr"

ARG APK_TESTING
RUN set -ex; \
if [ "$APK_TESTING" != "1" ]; then \
echo "Skip alpine edge testing repository"; \
else \
echo "Add alpine edge testing repository"; \
echo 'https://dl-cdn.alpinelinux.org/alpine/edge/testing/' >> /etc/apk/repositories; \
fi

ARG APK_INSTALL
RUN set -ex; \
if [ "$APK_INSTALL" != "1" ]; then \
echo "Skip apk install"; \
else \
echo "Add alpine edge testing repository"; \
apk add --no-cache ${APK_INSTALL}; \
fi

CMD ["/bin/sh"]
1 change: 1 addition & 0 deletions alpine/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Alwatr Alpine Container

0 comments on commit 2a34812

Please sign in to comment.