-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (21 loc) · 786 Bytes
/
Dockerfile
File metadata and controls
29 lines (21 loc) · 786 Bytes
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:18.04
LABEL version="0.1" author="FEI SUN" email="sunthx@outlook.com"
ENV REFRESHED_AT 2019-04-21
# modify apt source
ADD sources.list /etc/apt/
# install php7.13
RUN apt-get -yqq update && apt-get -y install software-properties-common apt-transport-https lsb-release ca-certificates
RUN add-apt-repository -y ppa:ondrej/php
RUN apt-get update && apt-get -y install php7.3 php7.3-fpm php7.3-curl php7.3-mbstring php7.3-mysql
# install nginx
RUN apt-get -y install nginx
# create website dir
RUN mkdir -p /var/www/typecho
# upload website source
ADD 1.1-17.10.30-release.tar.gz /var/www/typecho/
# add our nginx config
ADD nginx/default /etc/nginx/sites-available/default
# publish 80 port
EXPOSE 80
# command line
ENTRYPOINT [ "/usr/sbin/nginx","-g","daemon off;" ]