switch to sqlite, generate new project as 'quip'

This commit is contained in:
2024-09-02 19:47:01 -04:00
parent 3e77cb13b2
commit f5c2b7d67e
47 changed files with 220 additions and 231 deletions

View File

@@ -21,7 +21,7 @@ ARG RUNNER_IMAGE="debian:${DEBIAN_VERSION}"
FROM ${BUILDER_IMAGE} as builder
# install build dependencies
RUN apt-get update -y && apt-get install -y build-essential git curl \
RUN apt-get update -y && apt-get install -y build-essential git \
&& apt-get clean && rm -f /var/lib/apt/lists/*_*
# prepare build dir
@@ -51,18 +51,6 @@ COPY lib lib
COPY assets assets
ENV NVM_DIR=/root/.nvm
ENV NODE_VERSION 20.9.0
RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.39.5/install.sh | bash \
&& . $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& nvm use default
ENV PATH="/root/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}"
RUN mix cmd npm install --prefix assets
# compile assets
RUN mix assets.deploy
@@ -97,7 +85,7 @@ RUN chown nobody /app
ENV MIX_ENV="prod"
# Only copy the final release from the build stage
COPY --from=builder --chown=nobody:root /app/_build/${MIX_ENV}/rel/phoenix_test ./
COPY --from=builder --chown=nobody:root /app/_build/${MIX_ENV}/rel/quip ./
USER nobody