mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-02-12 08:02:44 +00:00
31 lines
770 B
Docker
31 lines
770 B
Docker
FROM debian:12-slim
|
|
|
|
# install ca-certificates for https requests
|
|
RUN apt-get update && \
|
|
apt-get install -y ca-certificates tzdata && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# create non-root user
|
|
RUN groupadd -g 1000 appuser && \
|
|
useradd -r -u 1000 -g appuser appuser
|
|
|
|
# set working directory
|
|
WORKDIR /app
|
|
|
|
# copy the binary from build context based on target architecture
|
|
ARG TARGETARCH
|
|
COPY build/${TARGETARCH}/phishingclub /app/phishingclub
|
|
|
|
# make binary executable and set ownership
|
|
RUN chmod +x /app/phishingclub && \
|
|
chown appuser:appuser /app/phishingclub
|
|
|
|
# copy entrypoint script
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
# expose ports (using non-privileged ports by default)
|
|
EXPOSE 8080 8443 8000
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|