updated golang version

This commit is contained in:
2025-02-25 09:27:41 -05:00
parent d008d1a196
commit 9900454214
3 changed files with 8 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
FROM siteworxpro/golang:1.23.5 AS build
FROM siteworxpro/golang:1.24.0 AS build
WORKDIR /app
@@ -18,4 +18,9 @@ WORKDIR /app
COPY --from=build /app/top-wallpaper /app/top-wallpaper
RUN adduser -u 1001 -g appuser appuser -D && \
chown -R appuser:appuser /app
USER 1001
ENTRYPOINT ["/app/top-wallpaper"]

View File

@@ -30,7 +30,7 @@ PORT: Port to serve the image (default: 8080)
## docker
```shell
docker run -d -p 8080:8080 --name top-wallpaper -e REDIS_URL=redis -e REDIS_PORT=6379 -e REDIS_PASSWORD=pass -e REDIS_DB=0 -e ALLOWED_ORIGINS=http://localhost:8080 -e PATH=/wallpaper -e PORT=8080 --network=host --restart=always siteworxpro/top-wallpaper:latest
docker run --rm -d -p 8080:8080 --name top-wallpaper -e REDIS_URL=redis -e REDIS_PORT=6379 -e REDIS_PASSWORD=pass -e REDIS_DB=0 -e ALLOWED_ORIGINS=http://localhost:8080 -e PATH=/wallpaper -e PORT=8080 siteworxpro/top-wallpaper:latest
```
## License

2
go.mod
View File

@@ -1,6 +1,6 @@
module github.com/siteworxpro/top-wallpaper
go 1.23.5
go 1.24.0
require (
github.com/labstack/echo/v4 v4.13.3