-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (26 loc) · 850 Bytes
/
Dockerfile
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
30
31
32
33
34
35
FROM ubuntu:16.04
# Attached information
LABEL author.name="Mikevu" \
author.email="[email protected]"
# Configure the main working directory. This is the base
# directory used in any further RUN, COPY, and ENTRYPOINT
# commands.
ENV APP_PATH /venv
WORKDIR $APP_PATH
# Set the timezone.
ENV TZ=Asia/Ho_Chi_Minh
RUN set -x \
&& ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \
&& echo $TZ > /etc/timezone
RUN set -x \
&& apt-get update \
&& apt-get install -y nginx nano vim
RUN set -x \
&& echo "mysql-server mysql-server/root_password password root" | debconf-set-selections \
&& echo "mysql-server mysql-server/root_password_again password root" | debconf-set-selections \
&& apt-get install -y mysql-server
COPY start.sh /venv
RUN set -x \
&& chmod a+x /venv/*
ENTRYPOINT ["/venv/start.sh"]
EXPOSE 80