-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Afonso Oliveira <[email protected]>
- Loading branch information
1 parent
db49639
commit 0f8f064
Showing
1 changed file
with
38 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,38 @@ | ||
FROM ubuntu:24.04 AS spython-base | ||
RUN export DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update | ||
RUN apt-get install -y --no-install-recommends git gh | ||
RUN apt-get install -y --no-install-recommends less | ||
RUN apt-get install -y --no-install-recommends python3 | ||
RUN apt-get install -y --no-install-recommends python3.12-venv python3-pip | ||
RUN apt-get install -y --no-install-recommends build-essential | ||
RUN apt-get install -y --no-install-recommends ruby ruby-dev | ||
RUN apt-get install -y --no-install-recommends bundler | ||
RUN apt-get install -y --no-install-recommends nodejs | ||
RUN apt-get install -y --no-install-recommends npm | ||
RUN apt-get install -y --no-install-recommends ditaa | ||
RUN apt-get clean autoclean | ||
RUN apt-get autoremove -y | ||
RUN rm -rf /var/lib/{apt, dpkg, cache, log} | ||
# Use Ubuntu 24.04 as base image | ||
FROM ubuntu:24.04 | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV DEVCONTAINER_ENV=1 | ||
ENV BUNDLE_PATH=/usr/local/bundle | ||
ENV BUNDLE_APP_CONFIG=/usr/local/bundle | ||
|
||
# Set working directory | ||
WORKDIR /workspace | ||
|
||
COPY Gemfile Gemfile.lock ./ | ||
|
||
# Install dependencies | ||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
git \ | ||
gh \ | ||
less \ | ||
python3 \ | ||
python3.12-venv \ | ||
python3-pip \ | ||
build-essential \ | ||
ruby \ | ||
ruby-dev \ | ||
bundler \ | ||
nodejs \ | ||
npm \ | ||
ditaa && \ | ||
bundle install && \ | ||
apt-get clean autoclean && \ | ||
apt-get autoremove -y && \ | ||
rm -rf /var/lib/{apt,dpkg,cache,log}/* | ||
|
||
COPY package.json package-lock.json ./ | ||
|
||
# Stay in workspace directory | ||
WORKDIR /workspace |