-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Pin credentials_obfuscation dep * Add dockerfile * Add container creation in the github action Co-authored-by: arbulu89 <xarbulu@suse.com>
- Loading branch information
1 parent
88d2ecf
commit d225c52
Showing
5 changed files
with
81 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/_build/ | ||
/deps/ | ||
/doc/ | ||
/test/ | ||
/tmp/ |
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
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
FROM opensuse/leap AS elixir-build | ||
ENV LANG en_US.UTF-8 | ||
ENV LANGUAGE en_US:en | ||
ENV LC_ALL en_US.UTF-8 | ||
RUN zypper -n addrepo https://download.opensuse.org/repositories/devel:/languages:/erlang/SLE_15_SP3/devel:languages:erlang.repo | ||
RUN zypper -n --gpg-auto-import-keys ref -s | ||
RUN zypper -n in elixir | ||
COPY . /build | ||
WORKDIR /build | ||
ARG MIX_ENV=prod | ||
ENV MIX_ENV=$MIX_ENV | ||
RUN mix local.rebar --force \ | ||
&& mix local.hex --force \ | ||
&& mix deps.get | ||
|
||
FROM elixir-build AS release | ||
COPY --from=elixir-build /build /build | ||
WORKDIR /build | ||
ARG MIX_ENV=prod | ||
ENV MIX_ENV=$MIX_ENV | ||
RUN mix phx.digest | ||
RUN mix release | ||
|
||
FROM registry.suse.com/bci/bci-base:15.3 AS wanda | ||
LABEL org.opencontainers.image.source="https://github.com/trento-project/wanda" | ||
ARG MIX_ENV=prod | ||
ENV MIX_ENV=$MIX_ENV | ||
ENV LANG en_US.UTF-8 | ||
ENV LANGUAGE en_US:en | ||
ENV LC_ALL en_US.UTF-8 | ||
WORKDIR /app | ||
COPY --from=release /build/_build/$MIX_ENV/rel/wanda . | ||
EXPOSE 4000/tcp | ||
ENTRYPOINT ["/app/bin/wanda"] |
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
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