Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrading the base environment to deian:buster and fix php dependencies #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,30 @@
# Yeah I know... not the perfect one
# but you know, never change a running
# system...
FROM debian:jessie
FROM debian:buster

MAINTAINER t0kx <[email protected]>
MAINTAINER catop <[email protected]>

# for old version php installation(5.6)
RUN apt-get update && \
apt-get install -y wget && \
wget -O /etc/apt/trusted.gpg.d/php.gpg https://mirror.xtom.com.hk/sury/php/apt.gpg && \
apt-get install -y apt-transport-https && \
echo "deb https://packages.sury.org/php/ buster main" > /etc/apt/sources.list.d/php.list

# install debian stuff
RUN apt-get update && \
apt-get upgrade -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
wget apache2 php5 php5-sqlite sqlite3 git golang sendmail-bin \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
wget apache2 php5.6 php5.6-sqlite3 sqlite3 git golang sendmail-bin

# install php extensions
RUN apt-get install -y php5.6-mbstring php5.6-zip && \
apt-get clean && rm -rf /var/lib/apt/lists/*

# "configure" smtpd and imapd
RUN echo "127.0.1.1 myhostname myhostname" >> /etc/hosts && \
GOPATH=/tmp/ go get github.com/jordwest/imap-server/demo && \
RUN GOPATH=/tmp/ go get github.com/jordwest/imap-server/demo && \
GOPATH=/tmp/ go build github.com/jordwest/imap-server/demo && \
yes Y | sendmailconfig

Expand Down