Skip to content

Commit

Permalink
Merge pull request #792 from trheyi/main
Browse files Browse the repository at this point in the history
Update build-linux.yml and Dockerfile for environment improvements an…
  • Loading branch information
trheyi authored Nov 29, 2024
2 parents d42842f + dc43e9c commit b0b70a8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ jobs:
R2_ACCOUNT_ID: ${{ secrets.R2_ACCOUNT_ID }}

steps:
- name: Install AWS CLI
run: |
apt-get update
apt-get install -y awscli
- name: Configure R2 For Cloudflare
run: |
aws configure set aws_access_key_id $CF_ACCESS_KEY_ID
Expand Down
22 changes: 14 additions & 8 deletions docker/build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ===========================================
# Yao Build Environment (Ubuntu 23.04 AMD64)
# Yao Build Environment (Ubuntu 24.04 AMD64)
#
# Build:
# docker build --platform linux/amd64 -t yaoapp/yao-build:0.10.4 .
Expand All @@ -12,7 +12,7 @@
# docker run --rm -it -v ./test:/data yaoapp/yao-build:0.10.4 /bin/bash
#
# ===========================================
FROM ubuntu:23.04
FROM ubuntu:24.04
WORKDIR /app
ADD build.sh /app/build.sh
ENV PATH=$PATH:/usr/local/go/bin:/root/go/bin
Expand All @@ -29,18 +29,24 @@ RUN apt-get update && \
apt-get install -y git && \
apt-get install -y unzip

RUN wget https://golang.org/dl/go1.21.1.linux-amd64.tar.gz && \
tar -C /usr/local -xzf go1.21.1.linux-amd64.tar.gz && \
rm go1.21.1.linux-amd64.tar.gz
# Install Go 1.23.3
RUN wget https://golang.org/dl/go1.23.3.linux-amd64.tar.gz && \
tar -C /usr/local -xzf go1.23.3.linux-amd64.tar.gz && \
rm go1.23.3.linux-amd64.tar.gz

# Install Node.js 18.x
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
apt-get install -y nodejs

RUN npm install -g pnpm

RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash && \
apt-get install -y git-lfs && \
git lfs install
# Install AWS CLI
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
./aws/install && \
rm -rf awscliv2.zip && \
rm -rf aws && \
aws --version

# RUN npm install -g pnpm
RUN chmod +x /app/build.sh
Expand Down

0 comments on commit b0b70a8

Please sign in to comment.