Add a Dockerfile.
epsi-builds/msspec_python3/pipeline/head This commit looks good
Details
epsi-builds/msspec_python3/pipeline/head This commit looks good
Details
This commit is contained in:
parent
da92ce048f
commit
7921f813c4
|
@ -0,0 +1,30 @@
|
||||||
|
# Get the base Python image
|
||||||
|
FROM python:3.7
|
||||||
|
|
||||||
|
# Set the working directory in the container
|
||||||
|
RUN useradd -ms /bin/bash msspec
|
||||||
|
WORKDIR /code
|
||||||
|
|
||||||
|
# Fetch the code
|
||||||
|
COPY fresh .
|
||||||
|
|
||||||
|
ENV LANG=en_US.UTF-8
|
||||||
|
ENV PATH=/opt/bin:$PATH
|
||||||
|
|
||||||
|
# Install system dependencies
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y virtualenv gfortran locales python3-wxgtk4.0
|
||||||
|
|
||||||
|
# Reconfigure the locales
|
||||||
|
RUN sed -i -e "s/# $LANG.*/$LANG UTF-8/" /etc/locale.gen && \
|
||||||
|
dpkg-reconfigure --frontend=noninteractive locales && \
|
||||||
|
update-locale LANG=$LANG
|
||||||
|
|
||||||
|
# Install msspec
|
||||||
|
RUN make install VERBOSE=1 INSTALL_PREFIX=/opt
|
||||||
|
|
||||||
|
#RUN echo "/usr/lib/python3/dist-packages" > /opt/src/msspec_venv_*/lib/python3.7/site-packages/system_packages.pth
|
||||||
|
|
||||||
|
USER msspec
|
||||||
|
|
||||||
|
ENTRYPOINT ["msspec"]
|
Loading…
Reference in New Issue