This commit is contained in:
pandeptwidyaop
2024-08-15 19:28:53 +08:00
parent b6399b405e
commit bf97b6c542
12 changed files with 221 additions and 7 deletions

View File

@@ -8,6 +8,9 @@ RUN apt-get update && apt-get install -y \
libzip-dev \
libreoffice \
fontconfig \
gcc \
g++ \
build-essential \
ttf-mscorefonts-installer \
&& docker-php-ext-install zip \
&& rm -rf /var/lib/apt/lists/*
@@ -24,6 +27,21 @@ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local
# Verify Composer installation
RUN composer --version
WORKDIR /app
# Install Golang
RUN curl -OL https://go.dev/dl/go1.23.0.linux-arm64.tar.gz \
&& tar -C /usr/local -xzf go1.23.0.linux-arm64.tar.gz \
&& rm go1.23.0.linux-arm64.tar.gz
CMD ["tail","-f", "/dev/null"]
# Set Go environment variables
ENV PATH="/usr/local/go/bin:${PATH}"
# Verify Go installation
RUN go version
RUN curl -sSfL https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | sh -s -- -b /usr/local/bin
WORKDIR /app/gosrc
CMD ["air", "-c", ".air.toml", "--", "run"]
EXPOSE 80