Fix Docker build CMake version (#180)
This commit is contained in:
parent
442b8aa767
commit
98087fa89a
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@ -0,0 +1 @@
|
||||
**/.git
|
@ -2,7 +2,12 @@
|
||||
FROM ubuntu:18.04 as build-step
|
||||
|
||||
RUN apt-get -y update
|
||||
RUN apt-get -y install curl autoconf automake cmake libbz2-dev libace-dev libssl-dev libmysqlclient-dev libtool build-essential
|
||||
RUN apt-get -y install curl autoconf automake libbz2-dev libace-dev libssl-dev libmysqlclient-dev libtool build-essential gpg wget
|
||||
|
||||
RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null && \
|
||||
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ bionic main' | tee /etc/apt/sources.list.d/kitware.list >/dev/null && \
|
||||
apt-get update
|
||||
RUN apt-get -y install cmake
|
||||
|
||||
COPY . /mangoserver
|
||||
RUN mkdir /mangoserver/build
|
||||
|
@ -2,7 +2,12 @@
|
||||
FROM ubuntu:18.04 as build-step
|
||||
|
||||
RUN apt-get -y update
|
||||
RUN apt-get -y install curl autoconf automake cmake libbz2-dev libace-dev libssl-dev libmysqlclient-dev libtool build-essential
|
||||
RUN apt-get -y install curl autoconf automake libbz2-dev libace-dev libssl-dev libmysqlclient-dev libtool build-essential gpg wget
|
||||
|
||||
RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null && \
|
||||
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ bionic main' | tee /etc/apt/sources.list.d/kitware.list >/dev/null && \
|
||||
apt-get update
|
||||
RUN apt-get -y install cmake
|
||||
|
||||
COPY . /mangoserver
|
||||
RUN mkdir /mangoserver/build
|
||||
@ -20,8 +25,8 @@ RUN apt-get -y update && apt-get -y upgrade
|
||||
RUN apt-get -y install libmysqlclient20 openssl
|
||||
|
||||
COPY --from=build-step /mangos /mangos
|
||||
COPY --from=build-step /etc/realmd.conf.dist ../etc/realmd.conf.dist
|
||||
WORKDIR /mangos/bin
|
||||
RUN cp ../etc/realmd.conf.dist ../etc/realmd.conf
|
||||
RUN chmod +x realmd
|
||||
|
||||
EXPOSE 3724
|
||||
|
Loading…
x
Reference in New Issue
Block a user