attempt to get phoenix dockerized

This commit is contained in:
2024-08-31 13:17:45 -04:00
parent bb16921a74
commit 0e60ad1a86
6 changed files with 74 additions and 33 deletions

26
Dockerfile Normal file
View File

@@ -0,0 +1,26 @@
# Use an official Elixir runtime as a parent image.
FROM elixir:latest
RUN apt-get update && \
apt-get install -y postgresql-client inotify-tools nodejs npm
# Create app directory and copy the Elixir projects into it.
RUN mkdir /app
COPY . /app
WORKDIR /app
# Install Hex package manager.
RUN mix local.hex --force
# Compile the project.
RUN mix deps.get
WORKDIR /app/assets
RUN npm install --verbose
WORKDIR /app
RUN mix assets.setup
RUN mix assets.build
RUN mix do compile
CMD ["/app/entrypoint.sh"]