Skip to content

Commit

Permalink
Merge pull request #793 from trheyi/main
Browse files Browse the repository at this point in the history
Update Dockerfiles to use Ubuntu 24.04 and change download source for…
  • Loading branch information
trheyi authored Nov 29, 2024
2 parents b0b70a8 + 5bf6044 commit df44124
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docker/development/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
# docker run -d -p 5099:5099 yaoapp/yao:0.9.1-amd64-dev
#
# ===========================================
FROM ubuntu:20.04
FROM ubuntu:24.04
ARG VERSION
ARG ARCH
RUN groupadd -r yao && useradd -r -g yao yao && \
apt-get update && \
apt-get install -y curl sudo procps net-tools
RUN curl -fsSL "https://release-sv-1252011659.cos.na-siliconvalley.myqcloud.com/archives/yao-${VERSION}-linux-${ARCH}" > /usr/local/bin/yao && \
RUN curl -fsSL "https://yao.moapi.ai/archives/yao-${VERSION}-linux-${ARCH}" > /usr/local/bin/yao && \
chmod +x /usr/local/bin/yao && \
mkdir -p /data/app

Expand Down
10 changes: 7 additions & 3 deletions docker/production/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@ FROM alpine:latest
ARG VERSION
ARG ARCH
RUN apk --no-cache add curl
RUN curl -fsSL "https://release-sv-1252011659.cos.na-siliconvalley.myqcloud.com/archives/yao-${VERSION}-linux-${ARCH}" > /usr/local/bin/yao && \
chmod +x /usr/local/bin/yao
RUN mkdir -p /data/app
RUN curl -fsSL "https://yao.moapi.ai/archives/yao-${VERSION}-linux-${ARCH}" > /usr/local/bin/yao && \
chmod +x /usr/local/bin/yao && \
addgroup -S yao && adduser -S -G yao yao && \
mkdir -p /data/app && \
chown -R yao:yao /data/app

USER yao
VOLUME /data/app
WORKDIR /data/app
EXPOSE 5099
Expand Down

0 comments on commit df44124

Please sign in to comment.