mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-01-27 10:15:10 +00:00
shuffle around Dockerfile to allow to work for background container
This commit is contained in:
parent
6032486985
commit
0e94a4f4cf
@ -7,6 +7,14 @@ ENV PATH="$VIRTUAL_ENV/bin:$PATH"
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
# base plus packages needed for deployment. Could just install these in final, but then we can't cache as much.
|
||||||
|
FROM base AS deployment
|
||||||
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get clean -y \
|
||||||
|
&& apt-get install -y -q curl git-core gunicorn3 default-mysql-client \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Setup image for installing Python dependencies.
|
# Setup image for installing Python dependencies.
|
||||||
FROM base AS setup
|
FROM base AS setup
|
||||||
|
|
||||||
@ -20,16 +28,11 @@ COPY . /app
|
|||||||
RUN poetry install --without dev
|
RUN poetry install --without dev
|
||||||
|
|
||||||
# Final image without setup dependencies.
|
# Final image without setup dependencies.
|
||||||
FROM base AS final
|
FROM deployment AS final
|
||||||
|
|
||||||
LABEL source="https://github.com/sartography/spiff-arena"
|
LABEL source="https://github.com/sartography/spiff-arena"
|
||||||
LABEL description="Software development platform for building, running, and monitoring executable diagrams"
|
LABEL description="Software development platform for building, running, and monitoring executable diagrams"
|
||||||
|
|
||||||
RUN apt-get update \
|
|
||||||
&& apt-get clean -y \
|
|
||||||
&& apt-get install -y -q curl git-core gunicorn3 default-mysql-client \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
COPY --from=setup /app /app
|
COPY --from=setup /app /app
|
||||||
|
|
||||||
ENTRYPOINT ["./bin/boot_server_in_docker"]
|
CMD ["./bin/boot_server_in_docker"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user