Skip to content
Snippets Groups Projects
Verified Commit e79a07b3 authored by Gaëtan Blond's avatar Gaëtan Blond
Browse files

[Mobilizon] Fixed multiple bugs | build working

parent c6ed3164
No related branches found
No related tags found
1 merge request!55Mobilizon
......@@ -18,9 +18,9 @@ RUN apt-get update -y \
RUN useradd -ms /bin/bash -p ! mobilizon
USER mobilizon
WORKDIR /home/mobilizon
COPY ./prod.secret.exs /home/mobilizon/build/config/
RUN git clone -b "$MOBILIZON_GIT_TAG" "$MOBILIZON_GIT_URL" ./build
WORKDIR /home/mobilizon/build
COPY ./prod.secret.exs /home/mobilizon/build/config/
RUN mix local.hex --force \
&& mix local.rebar --force
RUN mix deps.get
......@@ -42,7 +42,7 @@ ENV INIT=FALSE \
MIX_ENV=prod \
INSTANCE_CONFIG=prod
RUN addgroup -S mobilizongr && adduser -s /bin/bash -S mobilizon -G mobilizongr
RUN apk update && apk add --update git && rm-rf /tmp/* /var/tmp/*
RUN apk update && apk add --update git && rm -rf /tmp/* /var/tmp/*
COPY --from=builder /home/mobilizon/build/ /home/mobilizon/live/
COPY --from=builder /home/mobilizon/.mix/ /home/mobilizon/.mix/
COPY ./entrypoint.sh /home/mobilizon/entrypoint.sh
......
......@@ -15,14 +15,14 @@ volumes:
services:
mobilizon:
image: registry.picasoft.net/pica-mobilizon:1.0.0.rc4
image: registry.picasoft.net/pica-mobilizon:1.0.0-rc.4
build:
context: ./app
dockerfile: Dockerfile
args:
- NODE_V=14
- MOBILIZON_GIT_URL=https://framagit.org/framasoft/mobilizon.git
- MOBILIZON_GIT_TAG=1.0.0.rc4
- MOBILIZON_GIT_TAG=1.0.0-rc.4
- MIX_ENV=prod
container_name: mobilizon-app
volumes:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment