Files
phishingclub/Dockerfile.release
Ronni Skansing 504e7cc6e6 add arm build support
Signed-off-by: Ronni Skansing <rskansing@gmail.com>
2026-01-19 18:15:32 +01:00

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"]