From 3157763cadc611371022ea31073d5a7a9164135b Mon Sep 17 00:00:00 2001 From: ErdemOzgen Date: Fri, 1 Mar 2024 20:23:27 +0800 Subject: [PATCH] Change make and dockerfile --- Dockerfile | 28 ++++++++++++++++------------ Makefile | 2 +- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4b36ac8..1acd018 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,26 +1,29 @@ # syntax=docker/dockerfile:1.4 -FROM --platform=$BUILDPLATFORM alpine:latest +FROM --platform=$BUILDPLATFORM ubuntu:22.04 ARG TARGETARCH -ARG VERSION=1.0.1 +ARG VERSION=1.0.1 ARG RELEASES_URL="https://github.com/ErdemOzgen/blackdagger/releases" ARG TARGET_FILE="dagu_${VERSION}_linux_${TARGETARCH}.tar.gz" - ARG USER="blackdagger" ARG USER_UID=1000 ARG USER_GID=$USER_UID -EXPOSE 8080 +EXPOSE 8080 8090 RUN < /etc/sudoers.d/${USER} chmod 0440 /etc/sudoers.d/${USER} + + # Download and install gotty + wget https://github.com/some-location/gotty/releases/download/v1.0.0/gotty_linux_amd64 -O /usr/local/bin/gotty + chmod +x /usr/local/bin/gotty EOF USER blackdagger @@ -28,12 +31,13 @@ WORKDIR /home/blackdagger RUN <