Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 8 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,15 @@ npm-debug.log
# The directory NPM downloads your dependencies sources to.
/assets/node_modules/

# Since we are building assets from assets/,
# we ignore priv/static. You may want to comment
# this depending on your deployment strategy.
/priv/static/
# esbuild/tailwind bundles and phx.digest artifacts are generated at build time.
# Keep only source static files (favicon, robots.txt, images/) under priv/static.
/priv/static/assets/
/priv/static/cache_manifest.json
/priv/static/**/*.gz
/priv/static/**/*-????????????????????????????????.*

/.elixir_ls/
/.vscode/
/tmp/
.claude/settings.local.json
.tool-versions
17 changes: 6 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,8 @@ ENV LANG=C.UTF-8
# install build dependencies
RUN apt update && \
apt upgrade -y && \
apt install -y --no-install-recommends git build-essential curl ca-certificates gnupg && \
mkdir -p /etc/apt/keyrings && \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_22.x nodistro main" > /etc/apt/sources.list.d/nodesource.list && \
apt update && \
apt install -y --no-install-recommends nodejs && \
apt clean -y && rm -rf /var/lib/apt/lists/* && \
npm install -g yarn
apt install -y --no-install-recommends git build-essential ca-certificates && \
apt clean -y && rm -rf /var/lib/apt/lists/*

# prepare build dir
RUN mkdir /app
Expand All @@ -36,12 +30,13 @@ RUN mix deps.get
RUN mix deps.compile

# build assets
COPY priv priv
COPY assets assets
RUN cd assets && yarn install && yarn run webpack --mode production
RUN mix phx.digest
RUN mix esbuild.install --if-missing
RUN mix tailwind.install --if-missing
RUN mix assets.deploy

# build project
COPY priv priv
COPY lib lib
RUN mix compile

Expand Down
5 changes: 0 additions & 5 deletions assets/.babelrc

This file was deleted.

Loading