File: Dockerfile

package info (click to toggle)
python-awscurl 0.36-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 260 kB
  • sloc: python: 967; sh: 90; makefile: 18
file content (25 lines) | stat: -rw-r--r-- 383 bytes parent folder | download
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
# Build stage
FROM python:3-alpine AS builder

RUN set -ex && \
  apk add \
  build-base \
  libffi-dev \
  libxml2-dev \
  openssl-dev

RUN pip install --user botocore

COPY . /app-source-dir

RUN pip install -v --user /app-source-dir 


# Runtime stage
FROM python:3-alpine

COPY --from=builder /root/.local /root/.local 

ENV PATH=/root/.local/bin/:${PATH}

ENTRYPOINT ["awscurl"]