forked from MaterializeInc/materialize
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (21 loc) · 858 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
# Copyright Materialize, Inc. and contributors. All rights reserved.
#
# Use of this software is governed by the Business Source License
# included in the LICENSE file at the root of this repository.
#
# As of the Change Date specified in that file, in accordance with
# the Business Source License, use of this software will be governed
# by the Apache License, Version 2.0.
MZFROM ubuntu-base
RUN apt-get update -o Acquire::Languages=none \
&& apt-get install -qy -o Dpkg::Options::=--force-unsafe-io \
aspell \
&& aspell -d en dump master | aspell -l en expand | grep '^[a-z]*$' > words.txt \
&& apt-get remove -y aspell \
&& apt-get autoremove -y
FROM python:3.8-slim
COPY . /app
COPY --from=0 words.txt /app/words.txt
WORKDIR /app
RUN pip install -r requirements-server.txt -r requirements-loadgen.txt
CMD ["./server.py"]