forked from hanc00l/nemo_go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-server
29 lines (25 loc) · 943 Bytes
/
Dockerfile-server
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM ubuntu:22.04
ENV LC_ALL C.UTF-8
# Docker timezone
ENV TZ=Asia/Shanghai \
DEBIAN_FRONTEND=noninteractive
# Install tzdata
RUN set -x \
&& sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list \
&& sed -i 's/security.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list \
&& apt update \
&& apt install -y tzdata \
&& ln -fs /usr/share/zoneinfo/${TZ} /etc/localtime \
&& echo ${TZ} > /etc/timezone \
&& dpkg-reconfigure --frontend noninteractive tzdata \
&& rm -rf /var/lib/apt/lists/*
# Init
RUN set -x \
# You may need this if you're in Mainland China \
&& apt update \
&& apt install -y wget curl vim net-tools iputils-ping git unzip --fix-missing
COPY . /opt/nemo
#link to mysql and rabbitmq
RUN set -x \
&& sed -i 's/host: 127.0.0.1/host: mysql/g' /opt/nemo/conf/server.yml \
&& sed -i 's/host: localhost/host: rabbitmq/g' /opt/nemo/conf/server.yml \