Compare commits
No commits in common. "e9de48656d61aecb8d90dd4f14395964d72f36ac" and "f692d1eb2d99e9a5c8030b196729a9fe896bb328" have entirely different histories.
e9de48656d
...
f692d1eb2d
@ -1,6 +0,0 @@
|
||||
cache
|
||||
compose.yaml
|
||||
*.json
|
||||
LICENSE
|
||||
*.md
|
||||
services
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,5 +1,4 @@
|
||||
**/cache
|
||||
**/compose.yaml
|
||||
**/config.json
|
||||
**/skunkyart
|
||||
**/skunkyart-*
|
||||
|
23
Dockerfile
23
Dockerfile
@ -1,23 +0,0 @@
|
||||
ARG GO_VERSION=1.18
|
||||
|
||||
FROM --platform=$BUILDPLATFORM golang:${GO_VERSION} AS build
|
||||
ARG TARGETOS
|
||||
ARG TARGETARCH
|
||||
|
||||
WORKDIR /build
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 GOARCH=${TARGETARCH} GOOS=${TARGETOS} go build -ldflags "-s -w -extldflags '-static'" && \
|
||||
echo "skunkyart:x:10000:10000:SkunkyArt user:/:/sbin/nologin" > /etc/minimal-passwd && \
|
||||
echo "skunkyart:x:10000:" > /etc/minimal-group
|
||||
|
||||
FROM scratch
|
||||
|
||||
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||
COPY --from=build /build/static /static
|
||||
COPY --from=build /build/skunkyart /skunkyart
|
||||
COPY --from=build /etc/minimal-passwd /etc/passwd
|
||||
COPY --from=build /etc/minimal-group /etc/group
|
||||
|
||||
USER skunkyart
|
||||
|
||||
ENTRYPOINT ["/skunkyart"]
|
@ -1,12 +0,0 @@
|
||||
services:
|
||||
skunkyart:
|
||||
container_name: skunkyart
|
||||
restart: unless-stopped
|
||||
build: .
|
||||
ports:
|
||||
- "127.0.0.1:3003:3003"
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
volumes:
|
||||
- ./config.json:/config.json:ro
|
||||
- ./cache:/cache # Ensure cache folder has a 10000:10000 ownership.
|
Loading…
x
Reference in New Issue
Block a user