File: Dockerfile

package info (click to toggle)
radon 4.1.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 860 kB
  • sloc: python: 3,640; makefile: 175
file content (25 lines) | stat: -rw-r--r-- 521 bytes parent folder | download | duplicates (4)
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 alpine:edge
MAINTAINER rubik

WORKDIR /usr/src/app
COPY . /usr/src/app

RUN apk --update add \
  python2 python3 py2-pip && \
  pip2 install --upgrade pip && \
  pip2 install --requirement requirements.txt && \
  pip2 install . && \
  mv /usr/bin/radon /usr/bin/radon2 && \
  pip3 install --requirement requirements.txt && \
  pip3 install . && \
  mv /usr/bin/radon /usr/bin/radon3 && \
  rm /var/cache/apk/*

RUN adduser -u 9000 app -D
USER app

WORKDIR /code

VOLUME /code

CMD ["/usr/src/app/codeclimate-radon"]