mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-29 23:25:59 +00:00
39 lines
1.4 KiB
Docker
39 lines
1.4 KiB
Docker
# Dockerfile - Build image to prepare khanat server
|
|
#
|
|
# Copyright (C) 2017 AleaJactaEst
|
|
#
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
#
|
|
|
|
FROM amd64/debian:8
|
|
MAINTAINER AleaJactaEst
|
|
|
|
ENV HOSTNAME basic_server
|
|
|
|
RUN apt-get update
|
|
RUN apt-get dist-upgrade -y
|
|
|
|
RUN apt-get install -y curl nano vim less bash-completion cron logrotate bsd-mailx
|
|
RUN apt-get install -y openssh-server sudo net-tools
|
|
RUN apt-get install -y lzma xdelta
|
|
|
|
# adding account gameserver, password khanat
|
|
RUN useradd -G sudo,www-data -c /home -d /home/gameserver -c "Khanat account GAME" -m -p '$6$nxHX/3u.$azS0.eldpfKqxqOLDjgZj8.hPOLC64arXDTUVX0fs7RZvRBX/pNqPzDR89ccP5XkEE/daOyaD3wVtDGDUND5b/' -s /bin/bash -U gameserver
|
|
|
|
COPY dist/docker/server/debian/common/init-basic.sh /opt/
|
|
|
|
RUN /opt/init-basic.sh
|
|
|
|
|
|
|