-
Notifications
You must be signed in to change notification settings - Fork 94
/
Dockerfile
29 lines (22 loc) · 642 Bytes
/
Dockerfile
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 maintainer="[email protected]"
LABEL version="1.0"
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
python3-dev \
git
RUN pip3 install --upgrade pip
# Install python modules.
COPY ./requirements.txt /requirements.txt
RUN pip install -r /requirements.txt
# Set Japanese environment
RUN apt-get update && \
apt-get install -y locales && \
locale-gen ja_JP.UTF-8 && \
echo "export LANG=ja_JP.UTF-8" >> ~/.bashrc
# Set alias for python3
RUN echo "alias python=python3" >> $HOME/.bashrc && \
echo "alias pip=pip3" >> $HOME/.bashrc
WORKDIR /work
CMD ["/bin/bash"]