Skip to content

Instantly share code, notes, and snippets.

@5LICK
Last active January 28, 2017 00:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 5LICK/d488e9dbb26c236d076895dc321fcb38 to your computer and use it in GitHub Desktop.
Save 5LICK/d488e9dbb26c236d076895dc321fcb38 to your computer and use it in GitHub Desktop.
FROM f69m/ubuntu32:16.04
MAINTAINER Oleg <slicknslick@yahoo.com>
ENV DEBIAN_FRONTEND noninteractive
# install mono
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
RUN echo "deb http://download.mono-project.com/repo/debian wheezy main" | tee /etc/apt/sources.list.d/mono-xamarin.list
RUN apt-get update
RUN apt-get install -y mono-complete
RUN apt-get install unzip
# copy and unzip server files
RUN mkdir opt/srv
COPY env/env.zip /opt/srv/ # env.zip - server files
RUN unzip opt/srv/env.zip -d opt/srv
# start server
RUN chmod +x opt/srv/samp03svr
RUN mv opt/srv/samp.sh /usr/local/bin/samp
RUN chmod +x /usr/local/bin/samp
CMD ["samp", "start"]
EXPOSE 7777/udp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment