Wei-Yu Chen | b91af85 | 2022-03-15 22:24:49 +0800 | [diff] [blame] | 1 | #syntax=docker/dockerfile:1 |
2 | |||||
3 | FROM ubuntu:20.04 | ||||
4 | RUN apt update && apt install -y --no-install-recommends \ | ||||
5 | build-essential \ | ||||
6 | curl \ | ||||
7 | git \ | ||||
8 | unzip \ | ||||
9 | python3 \ | ||||
10 | python3-dev \ | ||||
11 | python3-venv \ | ||||
12 | python3-pip | ||||
13 | |||||
14 | COPY . /opt/enodebd | ||||
15 | WORKDIR /opt/enodebd | ||||
16 | RUN make venv && make install-protoc && make proto | ||||
Wei-Yu Chen | f90b16b | 2022-05-24 22:04:41 +0800 | [diff] [blame] | 17 | |
18 | EXPOSE 8080 48080 | ||||
19 | CMD ["venv/bin/python", "main.py"] |