-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from isucon/debian
コンテナイメージを言語公式に変更
- Loading branch information
Showing
3 changed files
with
23 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM golang:1.18.3-bullseye | ||
|
||
WORKDIR /tmp | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update && \ | ||
apt-get -y upgrade && \ | ||
apt-get install -y wget gcc g++ make sqlite3 && \ | ||
wget -q https://dev.mysql.com/get/mysql-apt-config_0.8.22-1_all.deb && \ | ||
apt-get -y install ./mysql-apt-config_*_all.deb && \ | ||
apt-get -y update && \ | ||
apt-get -y install mysql-client | ||
|
||
RUN mkdir -p /home/isucon/webapp/go | ||
WORKDIR /home/isucon/webapp/go | ||
|
||
ENV GOPATH /home/isucon/go | ||
ENV PATH /home/isucon/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | ||
RUN go install github.com/cespare/reflex@latest | ||
|
||
CMD [ "reflex", "-r", "(\\.go$|go\\.mod)", "-s", "go", "run", "cmd/isuports/main.go" ] |