mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-15 03:08:00 +01:00
[container] Update Dockerfile for PEP 518 build
This commit is contained in:
15
Dockerfile
15
Dockerfile
@@ -9,27 +9,28 @@ RUN apt-get update \
|
||||
ca-certificates \
|
||||
locales \
|
||||
python3 \
|
||||
python3-setuptools \
|
||||
python3-pip \
|
||||
&& localedef \
|
||||
-i en_US \
|
||||
-c \
|
||||
-f UTF-8 \
|
||||
-A /usr/share/locale/locale.alias en_US.UTF-8
|
||||
-A /usr/share/locale/locale.alias \
|
||||
en_US.UTF-8
|
||||
|
||||
COPY setup.cfg setup.py *.md /usr/src/app/
|
||||
COPY pyproject.toml setup.cfg *.md /usr/src/app/
|
||||
COPY doc/*.md /usr/src/app/doc/
|
||||
COPY man/asciinema.1 /usr/src/app/man/
|
||||
COPY asciinema/ /usr/src/app/asciinema/
|
||||
COPY README.md LICENSE /usr/src/app/
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
RUN python3 setup.py install
|
||||
RUN pip3 install .
|
||||
|
||||
WORKDIR /root
|
||||
|
||||
ENV LANG="en_US.utf8"
|
||||
ENV SHELL="/bin/bash"
|
||||
ENV USER="docker"
|
||||
|
||||
WORKDIR /root
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/asciinema"]
|
||||
CMD ["--help"]
|
||||
|
||||
18
tests/distros/Dockerfile.alpine
Normal file
18
tests/distros/Dockerfile.alpine
Normal file
@@ -0,0 +1,18 @@
|
||||
# syntax=docker/dockerfile:1.3
|
||||
|
||||
FROM docker.io/library/alpine:3.14
|
||||
|
||||
RUN apk --no-cache add bash ca-certificates python3
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY asciinema/ asciinema/
|
||||
COPY tests/ tests/
|
||||
|
||||
ENV LANG="en_US.utf8"
|
||||
|
||||
USER nobody
|
||||
|
||||
ENTRYPOINT ["/bin/bash"]
|
||||
|
||||
# vim:ft=dockerfile
|
||||
22
tests/distros/Dockerfile.arch
Normal file
22
tests/distros/Dockerfile.arch
Normal file
@@ -0,0 +1,22 @@
|
||||
# syntax=docker/dockerfile:1.3
|
||||
|
||||
FROM docker.io/library/archlinux:latest
|
||||
|
||||
RUN pacman-key --init \
|
||||
&& pacman --sync --refresh --sysupgrade --noconfirm python3 \
|
||||
&& printf "LANG=en_US.UTF-8\n" > /etc/locale.conf \
|
||||
&& locale-gen \
|
||||
&& pacman --sync --clean --clean --noconfirm
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY asciinema/ asciinema/
|
||||
COPY tests/ tests/
|
||||
|
||||
ENV LANG="en_US.utf8"
|
||||
|
||||
USER nobody
|
||||
|
||||
ENTRYPOINT ["/bin/bash"]
|
||||
|
||||
# vim:ft=dockerfile
|
||||
@@ -1,10 +1,18 @@
|
||||
FROM centos:7
|
||||
# syntax=docker/dockerfile:1.3
|
||||
|
||||
FROM docker.io/library/centos:7
|
||||
|
||||
RUN yum install -y epel-release && yum install -y python36 && yum clean all
|
||||
|
||||
RUN yum install -y epel-release
|
||||
RUN yum install -y python34
|
||||
WORKDIR /usr/src/app
|
||||
COPY asciinema asciinema
|
||||
COPY tests tests
|
||||
ENV LANG en_US.utf8
|
||||
ENV SHELL /bin/bash
|
||||
ENV USER docker
|
||||
|
||||
COPY asciinema/ asciinema/
|
||||
COPY tests/ tests/
|
||||
|
||||
ENV LANG="en_US.utf8"
|
||||
|
||||
USER nobody
|
||||
|
||||
ENTRYPOINT ["/bin/bash"]
|
||||
|
||||
# vim:ft=dockerfile
|
||||
|
||||
@@ -1,13 +1,32 @@
|
||||
FROM debian:jessie
|
||||
# syntax=docker/dockerfile:1.3
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
FROM docker.io/library/debian:bullseye
|
||||
|
||||
ENV DEBIAN_FRONTENT="noninteractive"
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y \
|
||||
ca-certificates \
|
||||
locales \
|
||||
python3
|
||||
RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
|
||||
procps \
|
||||
python3 \
|
||||
&& localedef \
|
||||
-i en_US \
|
||||
-c \
|
||||
-f UTF-8 \
|
||||
-A /usr/share/locale/locale.alias \
|
||||
en_US.UTF-8 \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
COPY asciinema asciinema
|
||||
COPY tests tests
|
||||
ENV LANG en_US.utf8
|
||||
ENV SHELL /bin/bash
|
||||
ENV USER docker
|
||||
|
||||
COPY asciinema/ asciinema/
|
||||
COPY tests/ tests/
|
||||
|
||||
ENV LANG="en_US.utf8"
|
||||
|
||||
USER nobody
|
||||
|
||||
ENV SHELL="/bin/bash"
|
||||
|
||||
# vim:ft=dockerfile
|
||||
|
||||
@@ -1,9 +1,20 @@
|
||||
FROM fedora:26
|
||||
# syntax=docker/dockerfile:1.3
|
||||
|
||||
# https://medium.com/nttlabs/ubuntu-21-10-and-fedora-35-do-not-work-on-docker-20-10-9-1cd439d9921
|
||||
# https://www.mail-archive.com/ubuntu-bugs@lists.ubuntu.com/msg5971024.html
|
||||
FROM registry.fedoraproject.org/fedora:34
|
||||
|
||||
RUN dnf install -y python3 procps && dnf clean all
|
||||
|
||||
RUN dnf install -y python3 procps
|
||||
WORKDIR /usr/src/app
|
||||
COPY asciinema asciinema
|
||||
COPY tests tests
|
||||
ENV LANG en_US.utf8
|
||||
ENV SHELL /bin/bash
|
||||
ENV USER docker
|
||||
|
||||
COPY asciinema/ asciinema/
|
||||
COPY tests/ tests/
|
||||
|
||||
ENV LANG="en_US.utf8"
|
||||
ENV SHELL="/bin/bash"
|
||||
|
||||
USER nobody
|
||||
|
||||
ENTRYPOINT ["/bin/bash"]
|
||||
# vim:ft=dockerfile
|
||||
|
||||
@@ -1,13 +1,31 @@
|
||||
FROM ubuntu:16.04
|
||||
# syntax=docker/dockerfile:1.3
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
FROM docker.io/library/ubuntu:20.04
|
||||
|
||||
ENV DEBIAN_FRONTENT="noninteractive"
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y \
|
||||
ca-certificates \
|
||||
locales \
|
||||
python3
|
||||
RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
|
||||
python3 \
|
||||
&& localedef \
|
||||
-i en_US \
|
||||
-c \
|
||||
-f UTF-8 \
|
||||
-A /usr/share/locale/locale.alias \
|
||||
en_US.UTF-8 \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
COPY asciinema asciinema
|
||||
COPY tests tests
|
||||
ENV LANG en_US.utf8
|
||||
ENV SHELL /bin/bash
|
||||
ENV USER docker
|
||||
|
||||
COPY asciinema/ asciinema/
|
||||
COPY tests/ tests/
|
||||
|
||||
ENV LANG="en_US.utf8"
|
||||
|
||||
USER nobody
|
||||
|
||||
ENTRYPOINT ["/bin/bash"]
|
||||
|
||||
# vim:ft=dockerfile
|
||||
|
||||
Reference in New Issue
Block a user