Add extracted tools: CitrineOS, OpenOCPP, ShapeShifter
- CitrineOS core extracted (CSMS OCPP 2.0.1) - OpenOCPP extracted (firmware OCPP 1.6J/2.0.1) - ShapeShifter library installed (pip install -e) - ShapeShifter specification extracted - EVerest extracted TODO updated with progress
This commit is contained in:
30
tools/citrineos-core-main/apps/Server/deploy.Dockerfile
Normal file
30
tools/citrineos-core-main/apps/Server/deploy.Dockerfile
Normal file
@@ -0,0 +1,30 @@
|
||||
# SPDX-FileCopyrightText: 2025 Contributors to the CitrineOS Project
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# Use a specific base image with platform support
|
||||
FROM --platform=${BUILDPLATFORM:-linux/amd64} node:24.16.0 AS build
|
||||
|
||||
RUN corepack enable
|
||||
|
||||
WORKDIR /usr/local/apps/citrineos
|
||||
|
||||
COPY . .
|
||||
RUN pnpm install --frozen-lockfile
|
||||
RUN pnpm --filter "@citrineos/server..." build
|
||||
|
||||
# The final stage, which copies built files and prepares the run environment
|
||||
# Using a slim image to reduce the final image size
|
||||
FROM node:24.16.0-slim
|
||||
|
||||
RUN corepack enable
|
||||
|
||||
COPY --from=build /usr/local/apps/citrineos /usr/local/apps/citrineos
|
||||
|
||||
WORKDIR /usr/local/apps/citrineos
|
||||
|
||||
RUN chmod +x /usr/local/apps/citrineos/apps/Server/entrypoint.sh
|
||||
|
||||
EXPOSE ${PORT}
|
||||
|
||||
ENTRYPOINT ["/usr/local/apps/citrineos/apps/Server/entrypoint.sh"]
|
||||
Reference in New Issue
Block a user