mirror of
https://github.com/serai-dex/serai.git
synced 2025-01-20 09:44:39 +00:00
351436a258
* De-duplicate Dockerfiles by using a bash file to concatenate common parts Resolves #375. Dockerfiles are still committed to the repo to avoid a dependency on bash. * Add a CI job to confirm the committed dockerfiles are the currently generated ones * Create dedicated Dockerfiles per processor network Ensures the compromising of network-specific dependencies doesn't lead to a compromise of the build process for all processors. * Dockerfile corrections * Correct call to build processor Docker image in tests/processor
13 lines
347 B
Text
13 lines
347 B
Text
# Switch to a non-root user
|
|
RUN useradd --system --home /home/serai --shell /sbin/nologin serai
|
|
USER serai
|
|
|
|
WORKDIR /home/serai
|
|
|
|
# Copy the Serai binary and relevant license
|
|
COPY --from=builder --chown=serai /serai/bin/serai-node /bin/
|
|
COPY --from=builder --chown=serai /serai/AGPL-3.0 .
|
|
|
|
# Run node
|
|
EXPOSE 30333 9615 9933 9944
|
|
CMD ["serai-node"]
|