mirror of
https://github.com/pommee/goaway.git
synced 2026-02-25 11:48:58 -06:00
fix: image for amd64, will add more architectures in the future
This commit is contained in:
22
Dockerfile
22
Dockerfile
@@ -1,14 +1,26 @@
|
||||
FROM alpine:3.18
|
||||
FROM ubuntu:22.04
|
||||
|
||||
ARG DNS_PORT=53
|
||||
ARG WEBSITE_PORT=8080
|
||||
|
||||
ENV DNS_PORT=${DNS_PORT}
|
||||
ENV WEBSITE_PORT=${WEBSITE_PORT}
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y curl passwd && \
|
||||
adduser --disabled-password --gecos "" appuser
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apk add curl && \
|
||||
curl https://raw.githubusercontent.com/pommee/goaway/main/installer.sh | sh /dev/stdin && \
|
||||
mv /root/.local/bin/ /app/goaway
|
||||
RUN chown appuser:appuser /app
|
||||
|
||||
RUN curl https://raw.githubusercontent.com/pommee/goaway/main/installer.sh | sh /dev/stdin && \
|
||||
mv /root/.local/bin/goaway /app/goaway && \
|
||||
chmod +x /app/goaway && \
|
||||
chown appuser:appuser /app/goaway
|
||||
|
||||
EXPOSE ${DNS_PORT}/tcp ${DNS_PORT}/udp ${WEBSITE_PORT}/tcp
|
||||
|
||||
CMD ["sh", "-c", "/app/goaway --dnsport=${DNS_PORT} --webserverport=${WEBSITE_PORT}"]
|
||||
USER appuser
|
||||
|
||||
CMD ["sh", "-c", "/app/goaway", "--dnsport=${DNS_PORT}", "--webserverport=${WEBSITE_PORT}"]
|
||||
|
||||
Reference in New Issue
Block a user