Browse Source

Merge pull request #134 from nierdz/chore/bump-mono-and-acme.sh

chore: bump mono and acme.sh
master
notgiven688 1 year ago
committed by GitHub
parent
commit
0773b95473
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      Dockerfile

+ 5
- 5
Dockerfile View File

@ -1,4 +1,4 @@
FROM mono:5.16 AS webminerpool-build
FROM mono:6 AS webminerpool-build
ARG DONATION_LEVEL=0.03
@ -7,20 +7,20 @@ COPY hash_cn /hash_cn
RUN sed -ri "s/^(.*DonationLevel = )[0-9]\.[0-9]{2}/\1${DONATION_LEVEL}/" /server/Server/DevDonation.cs && \
apt-get -qq update && \
apt-get -qq install build-essential && \
apt-get --no-install-recommends -qq install build-essential && \
rm -rf /var/lib/apt/lists/* && \
cd /hash_cn/libhash && \
make && \
cd /server && \
msbuild Server.sln /p:Configuration=Release_Server /p:Platform="any CPU"
FROM mono:5.16
FROM mono:6
RUN mkdir /webminerpool
# Install acme.sh
RUN apt-get -qq update && \
apt-get install -qq \
apt-get install --no-install-recommends -qq \
coreutils \
cron \
curl \
@ -30,7 +30,7 @@ RUN apt-get -qq update && \
rm -rf /var/lib/apt/lists/* && \
git clone https://github.com/Neilpang/acme.sh.git /root/acme.sh && \
cd /root/acme.sh && \
git checkout 2.7.9 && \
git checkout 2.8.3 && \
/root/acme.sh/acme.sh --install --home /root/.acme.sh
COPY entrypoint.sh /entrypoint.sh
COPY --from=webminerpool-build /server/Server/bin/Release_Server/server.exe /webminerpool

Loading…
Cancel
Save