This file contains hidden or 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
#!/bin/bash | |
# Set up graalvm native-image On docker Ubuntu20.04 | |
# $ docker run -it -p 8848:8848 ubuntu:20.04 | |
# (in docker container)$ apt-get update && apt-get install -y wget && wget https://gist.githubusercontent.com/liux-pro/8fc306411f51788ea6e57f5842f99ed1/raw/native-image.sh && bash native-image.sh | |
apt-get update | |
apt-get install -y build-essential libz-dev zlib1g-dev | |
apt-get install -y git wget curl | |
# graalvm native-image building request libfreetype-dev ,which not mention on document | |
apt-get install -y libfreetype-dev |
This file contains hidden or 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
apt-get install -y python3 | |
python3 -m http.server 8848 |
This file contains hidden or 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
apt-get install -y language-pack-zh-hans | |
locale-gen zh_CN.UTF-8 | |
export LC_ALL=zh_CN.UTF-8 | |
# echo "export LC_ALL=zh_CN.UTF-8" >> /etc/profile | |
# source /etc/profile |
This file contains hidden or 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
export DEBIAN_FRONTEND=noninteractive | |
ln -fs /usr/share/zoneinfo/Asia /etc/localtime | |
apt-get install -y tzdata | |
dpkg-reconfigure --frontend noninteractive tzdata | |
apt-get -y install nginx |