-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.test
More file actions
25 lines (19 loc) · 824 Bytes
/
Dockerfile.test
File metadata and controls
25 lines (19 loc) · 824 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
FROM python:3.8-alpine
RUN apk update && apk add curl
RUN apk add --update nodejs nodejs-npm
ENV WAITFORIT_VERSION="v2.4.1"
RUN curl -o /usr/local/bin/waitforit -sSL https://github.com/maxcnunes/waitforit/releases/download/$WAITFORIT_VERSION/waitforit-linux_amd64 \
&& chmod +x /usr/local/bin/waitforit
RUN npm install -g serverless
RUN npm install serverless-localstack
RUN npm install serverless-deployment-bucket --save-dev
RUN mkdir -p /usr/data-transform-serverless
WORKDIR /usr/data-transform-serverless
COPY requirements.txt .
COPY scripts ./scripts
COPY app ./app
COPY test ./test
# install dependencies
RUN pip install -r requirements.txt
RUN chmod +x scripts/standby-mode.sh
CMD waitforit -address=http://$LOCALSTACK_HOSTNAME:4566 -timeout=120 -- echo "INFO: RUNNING DOCKER" && . scripts/standby-mode.sh