-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (25 loc) · 774 Bytes
/
Copy pathDockerfile
File metadata and controls
36 lines (25 loc) · 774 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
30
31
32
33
34
35
36
FROM lambci/lambda:build-python3.8
# make directories / folders
RUN mkdir app app/utils app/ftx app/mlcode app/awsUtils app/src app/structs
## PYTHON
# COPY poetry env over
# Poetry install
RUN pip install poetry==1.1.13
COPY poetry.lock pyproject.toml ./
RUN set -x \
&& pip install --no-cache-dir --upgrade pip \
&& pip install wheel \
&& poetry export --without-hashes -f requirements.txt -o requirements.txt \
&& pip install --no-cache-dir -r requirements.txt \
&& rm requirements.txt
## GOLANG
RUN yum -y install go
RUN echo $(ls)
ENV PATH="/usr/local/go/bin:${PATH}"
COPY go.mod go.sum ./
ENV GO111MODULE=on
RUN go mod download
# Copy files over
ADD app app
RUN cd app/src && go build -o go-trader .
ENTRYPOINT ["app/src/go-trader"]