Skip to content

Commit cd81026

Browse files
committed
ubuntu version update to 20.04. apt-get command changed to apt command. all solution items tested as well.
1 parent d1f7afb commit cd81026

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

docker/gunicorn/Dockerfile

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
FROM ubuntu:18.04
1+
FROM ubuntu:20.04
22

3-
RUN apt-get update
4-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends apt-utils
3+
RUN apt update
4+
RUN DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends apt-utils
55

66
# curl/wget/git
7-
RUN apt-get install -y curl wget git tar
7+
RUN apt install -y curl wget git tar
88
# vim
9-
RUN apt-get install -y vim
9+
RUN apt install -y vim
1010
# C
11-
RUN apt-get install -y build-essential gcc
11+
RUN apt install -y build-essential gcc
1212

1313
# Python
1414
RUN apt install -y build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev
@@ -31,12 +31,12 @@ RUN ln -s /usr/local/bin/pip3.8 /usr/bin/pip3
3131
RUN ln -s /usr/local/bin/pip3.8 /usr/local/bin/pip
3232
RUN ln -s /usr/local/bin/pip3.8 /usr/local/bin/pip3
3333

34-
#update apt-get
35-
RUN apt-get update && apt-get -y upgrade
34+
#update apt
35+
RUN apt update && apt -y upgrade
3636
RUN pip install --upgrade pip
3737
RUN pip3 install --upgrade pip
3838

39-
RUN apt-get install -y python3-dev libmysqlclient-dev
39+
RUN apt install -y python3-dev libmysqlclient-dev
4040

4141
RUN pip3 install wheel
4242

@@ -54,20 +54,20 @@ RUN pip3 install virtualenv
5454
RUN pip3 install django
5555

5656
# Set the locale
57-
# RUN apt-get install -y locales language-pack-ko
57+
# RUN apt install -y locales language-pack-ko
5858
# RUN locale-gen ko_KR.UTF-8
5959
# ENV LANG ko_KR.UTF-8
6060
# ENV LANGUAGE ko_KR:kr
6161
# ENV LC_ALL ko_KR.UTF-8
6262

6363
ENV OS_LOCALE="en_US.utf8" \
6464
DEBIAN_FRONTEND=noninteractive
65-
RUN apt-get update && apt-get install -y locales && locale-gen ${OS_LOCALE}
65+
RUN apt update && apt install -y locales && locale-gen ${OS_LOCALE}
6666
ENV LANG=${OS_LOCALE} \
6767
LANGUAGE=${OS_LOCALE} \
6868
LC_ALL=${OS_LOCALE}
6969

70-
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
70+
RUN apt clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
7171
ADD run.sh /tmp/run.sh
7272
RUN chmod u+x /tmp/run.sh
7373

docker/uwsgi/Dockerfile

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
FROM ubuntu:18.04
1+
FROM ubuntu:20.04
22

3-
RUN apt-get update
4-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends apt-utils
3+
RUN apt update
4+
RUN DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends apt-utils
55

66
# curl/wget/git
7-
RUN apt-get install -y curl wget git tar
7+
RUN apt install -y curl wget git tar
88
# vim
9-
RUN apt-get install -y vim
9+
RUN apt install -y vim
1010
# C
11-
RUN apt-get install -y build-essential gcc
11+
RUN apt install -y build-essential gcc
1212

1313
# Python
1414
RUN apt install -y build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev
@@ -31,12 +31,12 @@ RUN ln -s /usr/local/bin/pip3.8 /usr/bin/pip3
3131
RUN ln -s /usr/local/bin/pip3.8 /usr/local/bin/pip
3232
RUN ln -s /usr/local/bin/pip3.8 /usr/local/bin/pip3
3333

34-
# update apt-get
35-
RUN apt-get update && apt-get -y upgrade
34+
# update apt
35+
RUN apt update && apt -y upgrade
3636
RUN pip install --upgrade pip
3737
RUN pip3 install --upgrade pip
3838

39-
RUN apt-get install -y python3-dev libmysqlclient-dev
39+
RUN apt install -y python3-dev libmysqlclient-dev
4040

4141
RUN pip3 install wheel
4242

@@ -54,20 +54,20 @@ RUN pip3 install virtualenv
5454
RUN pip3 install django
5555

5656
# Set the locale
57-
# RUN apt-get install -y locales language-pack-ko
57+
# RUN apt install -y locales language-pack-ko
5858
# RUN locale-gen ko_KR.UTF-8
5959
# ENV LANG ko_KR.UTF-8
6060
# ENV LANGUAGE ko_KR:kr
6161
# ENV LC_ALL ko_KR.UTF-8
6262

6363
ENV OS_LOCALE="en_US.utf8" \
6464
DEBIAN_FRONTEND=noninteractive
65-
RUN apt-get update && apt-get install -y locales && locale-gen ${OS_LOCALE}
65+
RUN apt update && apt install -y locales && locale-gen ${OS_LOCALE}
6666
ENV LANG=${OS_LOCALE} \
6767
LANGUAGE=${OS_LOCALE} \
6868
LC_ALL=${OS_LOCALE}
6969

70-
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
70+
RUN apt clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
7171
ADD run.sh /tmp/run.sh
7272
RUN chmod u+x /tmp/run.sh
7373

0 commit comments

Comments
 (0)