mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-02-12 16:12:44 +00:00
18 lines
333 B
Docker
18 lines
333 B
Docker
FROM golang:1.24.5
|
|
|
|
WORKDIR /app
|
|
|
|
# Add user
|
|
# Add group with ID 1000 and user with ID 1000
|
|
RUN groupadd -g 1000 appuser && \
|
|
useradd -r -u 1000 -g appuser appuser -d /home/appuser -m
|
|
|
|
COPY go.mod /app/go.mod
|
|
COPY main.go /app/main.go
|
|
RUN chown -R appuser:appuser /app
|
|
|
|
USER appuser
|
|
RUN go mod tidy
|
|
|
|
CMD ["go", "run", "main.go"]
|