This repository has been archived on 2023-07-15. You can view files and clone it, but cannot push or open issues or pull requests.
altium2kicad/Dockerfile

45 lines
1.3 KiB
Docker

FROM perl:latest
LABEL maintainer "Altium to KiCad -- Chinky "
ARG UNAME="TongJi"
ARG UID=1002
ARG GID=100
ENV TIME_STYLE=long-iso
ENV LANG C.UTF-8
# For build image in local quickly in China
# RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list && \
# apt-get update && \
# apt-get install --no-install-recommends -y \
RUN groupadd -g $GID -o $UNAME
RUN useradd -m -u $UID -g $GID -o -s /bin/bash $UNAME
RUN cd / && \
curl -L https://github.com/thesourcerer8/altium2kicad/archive/master.zip -o altium2kicad.zip && \
curl -L https://github.com/xtoolbox/pcad2kicad/archive/master.zip -o pcad2kicad.zip && \
unzip altium2kicad.zip && \
unzip pcad2kicad.zip && \
rm -f *.zip && \
mv /altium2kicad-master /altium2kicad && \
mv /pcad2kicad-master /pcad2kicad
RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list &&\
sed -i 's|security.debian.org/debian-security|mirrors.ustc.edu.cn/debian-security|g' /etc/apt/sources.list &&\
apt-get update && \
apt-get install --no-install-recommends --no-install-suggests -y lua5.3 p7zip && \
rm -rf /var/lib/apt/lists/*
VOLUME ["/data"]
WORKDIR /data/tongji/WRK/pcb
ADD ./bin /usr/local/bin
ADD ./root /root
RUN chmod a+x /usr/local/bin/*
USER $UNAME
ADD ./root /home/$UNAME
# EXPOSE 80
# CMD ["/conf-copy/start.sh"]