This commit is contained in:
EvilMuffinHa 2021-09-12 22:27:43 -04:00
parent 2d4f8da847
commit cd857877dd
2 changed files with 13 additions and 0 deletions

View File

@ -5,6 +5,18 @@ RUN cargo build --release
FROM ubuntu:20.04 AS release FROM ubuntu:20.04 AS release
WORKDIR /root WORKDIR /root
RUN apt-get update --fix-missing && \
apt-get install --noconfirm -y build-essential checkinstall zlib1g-dev openssl
RUN apt-get -y install gcc
RUN apt-get -y remove openssl
RUN DEBIAN_FRONTEND=noninteractive apt-get -q update && apt-get -qy install wget make \
&& wget https://www.openssl.org/source/openssl-1.0.2g.tar.gz \
&& tar -xzvf openssl-1.0.2g.tar.gz \
&& cd openssl-1.0.2g \
&& ./config \
&& make install \
&& ln -sf /usr/local/ssl/bin/openssl 'which openssl'
COPY --from=build /build/target/release/cms ./cms COPY --from=build /build/target/release/cms ./cms
CMD [ "./cms", "-r" ] CMD [ "./cms", "-r" ]

View File

@ -9,6 +9,7 @@
<a href="/logout">Logout</a> <a href="/logout">Logout</a>
<br> <br>
<a href="/ui/events">Events</a> <a href="/ui/events">Events</a>
<br>
<a href="/ui/new">New</a> <a href="/ui/new">New</a>
<a href="/ui/announcements">Announcements</a> <a href="/ui/announcements">Announcements</a>
<a href="/ui/clubs">Clubs</a> <a href="/ui/clubs">Clubs</a>