Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dockerfile #75

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open
Changes from 11 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
f9ce232
:rocket: Add configured Dockerfile
arjxn-py Apr 5, 2024
a589fe6
:writing_hand: Propose some changes in `install_go.sh` script to make…
arjxn-py Apr 5, 2024
d99a35c
:nail_care: Add `install_zig.sh` script to install zig
arjxn-py Apr 5, 2024
2c50a0d
:pushpin: Modify Preliminary Dockerfile
arjxn-py Apr 19, 2024
0645456
↩️ Revert changes in `install_go.sh` & remove `install_zig.sh`
arjxn-py Apr 19, 2024
97a7eb4
📛 Merge to upstream & resolve conflicts
arjxn-py Apr 19, 2024
a2bcfe5
🪩 Automated fixes from https://pre-commit.ci
pre-commit-ci[bot] Apr 19, 2024
341dee5
:heavy_plus_sign: Install `g++` required for `libsaas`
arjxn-py Apr 19, 2024
76b2cb5
:memo: Update Dockerfile to set `GO_VERSION` and `ZIG_VERSION` enviro…
arjxn-py Apr 22, 2024
752013e
:airplane: Get rid of venv
arjxn-py Apr 22, 2024
7ecd2be
:paperclip: Merge to upstream
arjxn-py Apr 22, 2024
494673d
:whale: Add workflow to build & push docker image
arjxn-py Apr 22, 2024
43ae034
Merge branch 'main' into add-dockerfile
arjxn-py May 31, 2024
f8c4e6c
Merge branch 'main' into add-dockerfile
arjxn-py Jun 2, 2024
8a3f01c
:twisted_rightwards_arrows: Two separate Dockerfiles
arjxn-py Jun 2, 2024
227652f
:heavy_plus_sign: Consolidate two Dockerfiles into one using build-ti…
arjxn-py Jun 7, 2024
d33a667
:writing_hand: Change BUILDING_FOR_WINDOWS -> BUILD_STATIC
arjxn-py Jun 7, 2024
f82aa83
🪩 Automated fixes from https://pre-commit.ci
pre-commit-ci[bot] Jun 7, 2024
33bb909
:checkered_flag: Check for `linux-musl` in `CC` & `CXX` environment v…
arjxn-py Jun 9, 2024
0478067
:mag: Check for windows as well in `BUILD_STATIC`
arjxn-py Jul 1, 2024
d703210
:heavy_plus_sign: Merge to upstream
arjxn-py Jul 1, 2024
4e39c50
:test_tube: Run tests inside the built Docker image
arjxn-py Jul 1, 2024
b39c4b0
Merge branch 'main' into add-dockerfile
agriyakhetarpal Jul 2, 2024
cbaae2b
Merge branch 'main' into add-dockerfile
arjxn-py Jul 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
FROM python:3.11.9-slim

ENV GO_VERSION=1.22.1
arjxn-py marked this conversation as resolved.
Show resolved Hide resolved
ENV ZIG_VERSION=0.11.0

WORKDIR /

RUN apt-get update && \
apt-get install -y --no-install-recommends \
gcc \
g++ \
clang \
git \
wget \
dos2unix \
xz-utils \
&& rm -rf /var/lib/apt/lists/*

RUN wget "https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz" && \
tar -C /usr/local -xzf "go${GO_VERSION}.linux-amd64.tar.gz" && \
rm "go${GO_VERSION}.linux-amd64.tar.gz"

ENV PATH="${PATH}:/usr/local/go/bin"

RUN wget "https://ziglang.org/builds/zig-linux-x86_64-${ZIG_VERSION}.tar.xz" && \
tar -C /usr/local -xf "zig-linux-x86_64-${ZIG_VERSION}.tar.xz" && \
rm "zig-linux-x86_64-${ZIG_VERSION}.tar.xz"

ENV PATH="${PATH}:/usr/local/zig-linux-x86_64-${ZIG_VERSION}"

RUN git clone https://github.com/agriyakhetarpal/hugo-python-distributions && \
cd hugo-python-distributions && \
pip install -e . && \
pip install .

WORKDIR /hugo-python-distributions

CMD ["/bin/bash"]
Loading