Initial Commit.
Some checks reported errors
Home Cluster Builds/Image-ElixirPhoenix-1.11.3/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
2023-01-10 10:20:23 +02:00
parent 4abdc4a00c
commit b1182608e7
2 changed files with 82 additions and 0 deletions

24
cicd/main/Dockerfile Normal file
View File

@@ -0,0 +1,24 @@
# Elixir + Phoenix
FROM elixir:1.11.3
# Install debian packages
RUN apt-get update
RUN apt-get install --yes build-essential inotify-tools postgresql-client openssh-client
# Install node
RUN curl -sL https://deb.nodesource.com/setup_12.x -o nodesource_setup.sh
RUN bash nodesource_setup.sh
RUN apt-get install --yes nodejs
RUN useradd -m user
USER root
RUN mkdir _build deps \
&& chown user:user _build deps \
&& chmod 777 _build deps
WORKDIR /app
# install Hex + Rebar
RUN mix do local.hex --force, local.rebar --force