Done all
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user