mirror of
https://github.com/vernette/ipregion.git
synced 2026-04-26 10:30:38 +00:00
build(docker): add Dockerfile
This commit is contained in:
parent
e46e095487
commit
4eb2d89362
1 changed files with 28 additions and 0 deletions
28
Dockerfile
Normal file
28
Dockerfile
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
ARG SCRIPT_NAME=ipregion.sh
|
||||
ARG WORK_DIR=/app
|
||||
ARG USER=ipregion
|
||||
|
||||
FROM alpine:3.21
|
||||
|
||||
ARG SCRIPT_NAME
|
||||
ARG WORK_DIR
|
||||
ARG USER
|
||||
|
||||
RUN apk add --no-cache \
|
||||
curl \
|
||||
jq \
|
||||
bash \
|
||||
util-linux \
|
||||
iputils \
|
||||
grep
|
||||
|
||||
WORKDIR $WORK_DIR
|
||||
|
||||
COPY $SCRIPT_NAME .
|
||||
|
||||
RUN adduser --disabled-password --home $WORK_DIR $USER && \
|
||||
chmod +x $SCRIPT_NAME
|
||||
|
||||
USER $USER
|
||||
|
||||
ENTRYPOINT ["./ipregion.sh"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue