Skip to content

Commit 2e0f91c

Browse files
authored
Create Dockerfile.ARM64
1 parent 924864f commit 2e0f91c

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

docker/Dockerfile.ARM64

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Use a Debian base image for ARM architecture (Bullseye)
2+
FROM arm64v8/debian:bullseye
3+
4+
# Set non-interactive mode for APT to avoid prompts
5+
ENV DEBIAN_FRONTEND=noninteractive \
6+
PATH=$PATH:/home/pesho/photometrypipeline \
7+
PHOTPIPEDIR=/home/pesho/photometrypipeline
8+
9+
USER root
10+
11+
# Create a non-root user
12+
RUN useradd -m pesho && \
13+
chown -R pesho:pesho /home/pesho
14+
15+
# Update package list and install the required packages
16+
RUN apt-get update && \
17+
apt-get install -y software-properties-common \
18+
curl \
19+
wget \
20+
build-essential \
21+
libssl-dev \
22+
libffi-dev \
23+
git \
24+
libplplot-dev \
25+
libshp-dev \
26+
libcurl4-gnutls-dev \
27+
liblapack3 \
28+
liblapack-dev \
29+
liblapacke \
30+
liblapacke-dev \
31+
libfftw3-3 \
32+
libfftw3-dev \
33+
libfftw3-single3 \
34+
libatlas-base-dev \
35+
scamp \
36+
pip \
37+
nano \
38+
libcfitsio-dev \
39+
python3.9-venv \
40+
imagemagick && \
41+
# Clean up to reduce image size
42+
apt-get clean && \
43+
rm -rf /var/lib/apt/lists/*
44+
45+
WORKDIR /tmp
46+
47+
# Compile sextractor
48+
RUN git clone https://github.com/astromatic/sextractor.git && \
49+
cd sextractor && \
50+
sh autogen.sh && \
51+
./configure && \
52+
make -j && \
53+
make install
54+
55+
56+
# Set non-root user pesho
57+
USER pesho
58+
59+
# Set up a working directory
60+
WORKDIR /home/pesho
61+
62+
# Get python packages and PP binary
63+
RUN git clone https://github.com/AsenAsenov1/photometrypipeline.git && \
64+
pip install -r photometrypipeline/docker/requirements.txt
65+
66+
ENTRYPOINT ["/bin/bash", "-c", "sleep infinity"]

0 commit comments

Comments
 (0)