mirror of
https://github.com/skidoodle/ipinfo.git
synced 2026-04-28 17:37:37 +02:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
60cd48951d
|
+3
-4
@@ -5,17 +5,16 @@ RUN apk add --no-cache ca-certificates tzdata
|
||||
RUN echo "appuser:x:10001:10001:appuser:/:/sbin/nologin" > /etc/passwd_app \
|
||||
&& echo "appuser:x:10001:appuser" > /etc/group_app
|
||||
|
||||
RUN mkdir -p /app/data /app/uploads
|
||||
RUN mkdir -p /app/data && chown -R 10001:10001 /app
|
||||
|
||||
FROM scratch
|
||||
|
||||
COPY --from=sys-context /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||
COPY --from=sys-context /usr/share/zoneinfo /usr/share/zoneinfo
|
||||
|
||||
COPY --from=sys-context /etc/passwd_app /etc/passwd
|
||||
COPY --from=sys-context /etc/group_app /etc/group
|
||||
|
||||
COPY ipinfo /app/ipinfo
|
||||
COPY --from=sys-context --chown=10001:10001 /app /app
|
||||
COPY --chown=10001:10001 ipinfo /app/ipinfo
|
||||
|
||||
WORKDIR /app
|
||||
USER 10001
|
||||
|
||||
@@ -6,6 +6,3 @@ services:
|
||||
container_name: ipinfo
|
||||
ports:
|
||||
- "3000:3000"
|
||||
environment:
|
||||
GEOIPUPDATE_ACCOUNT_ID: ${GEOIPUPDATE_ACCOUNT_ID}
|
||||
GEOIPUPDATE_LICENSE_KEY: ${GEOIPUPDATE_LICENSE_KEY}
|
||||
|
||||
+1
-4
@@ -1,10 +1,7 @@
|
||||
services:
|
||||
ipinfo:
|
||||
image: ghcr.io/skidoodle/ipinfo:main
|
||||
image: ghcr.io/skidoodle/ipinfo:latest
|
||||
container_name: ipinfo
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "3000:3000"
|
||||
environment:
|
||||
GEOIPUPDATE_ACCOUNT_ID: ${GEOIPUPDATE_ACCOUNT_ID}
|
||||
GEOIPUPDATE_LICENSE_KEY: ${GEOIPUPDATE_LICENSE_KEY}
|
||||
|
||||
@@ -122,8 +122,8 @@ $ curl https://ip.albert.lol/example.com
|
||||
```sh
|
||||
git clone https://github.com/skidoodle/ipinfo
|
||||
cd ipinfo
|
||||
docker build -t ipinfo:main .
|
||||
docker run -p 3000:3000 ipinfo:main
|
||||
docker build -t ipinfo:latest .
|
||||
docker run -p 3000:3000 ipinfo:latest
|
||||
```
|
||||
|
||||
### Without Docker
|
||||
@@ -141,7 +141,7 @@ go run .
|
||||
```yaml
|
||||
services:
|
||||
ipinfo:
|
||||
image: ghcr.io/skidoodle/ipinfo:main
|
||||
image: ghcr.io/skidoodle/ipinfo:latest
|
||||
container_name: ipinfo
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
@@ -156,7 +156,7 @@ docker run \
|
||||
--name=ipinfo \
|
||||
--restart=unless-stopped \
|
||||
-p 3000:3000 \
|
||||
ghcr.io/skidoodle/ipinfo:main
|
||||
ghcr.io/skidoodle/ipinfo:latest
|
||||
```
|
||||
|
||||
## LICENSE
|
||||
|
||||
Reference in New Issue
Block a user