-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (23 loc) · 721 Bytes
/
Dockerfile
File metadata and controls
29 lines (23 loc) · 721 Bytes
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 amazonlinux:2
# Install tools and languages required for project.
RUN yum install -y amazon-linux-extras
RUN amazon-linux-extras enable python3.8
RUN yum install -y zip
RUN yum install -y git
RUN yum install -y python3.8
RUN yum install -y python3-devel
RUN yum install -y python38-devel
RUN alias python=python3
RUN yum groupinstall -y "Development Tools"
# Compile fastText
# RUN mkdir -p /dist/
# VOLUME /dist/
# RUN git clone https://github.com/facebookresearch/fastText.git
# WORKDIR /fastText/
# RUN pip3.8 install . -t ../tmp/fasttext
# RUN pip3.8 install regex -t ../tmp/fasttext
RUN mkdir /src/
VOLUME /src/
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]