&& apk add --no-cache --virtual .gyp build-base python3 \
&& npm install -g --ignore-scripts corepack \
&& corepack enable \
- && corepack prepare pnpm@latest --activate \
- && pnpm set progress=false \
- && pnpm config set depth 0 \
&& pnpm install --ignore-scripts --frozen-lockfile \
&& cp docker/config.json src/assets/config.json \
&& cp docker/idtags.json src/assets/idtags.json \
&& chmod +x /run.sh \
&& chmod +x /autoconfig.sh
+EXPOSE 8080
ENTRYPOINT ["/bin/sh", "-c", "/autoconfig.sh && /run.sh"]
#!/usr/bin/env sh
-node dist/start.js
+exec node dist/start.js
-import type { AuthenticationType, ProtocolVersion } from './UIProtocol.js'
-import type { Protocol } from './UIProtocol.js'
+import type { AuthenticationType, Protocol, ProtocolVersion } from './UIProtocol.js'
export interface ConfigurationData {
theme?: string
RUN set -ex \
&& npm install -g --ignore-scripts corepack \
&& corepack enable \
- && corepack prepare pnpm@latest --activate \
- && pnpm set progress=false \
- && pnpm config set depth 0 \
&& pnpm install --ignore-scripts --frozen-lockfile \
&& cp ui/web/docker/config.json ui/web/public/config.json \
&& pnpm --filter webui build
#!/usr/bin/env sh
-node start.js
+exec node start.js
}
if (typeof options.transactionId === 'string') {
return {
- errorMessage: 'OCPP 1.6 requires numeric transactionId',
+ responsesFailed: [
+ {
+ errorMessage: 'OCPP 1.6 requires numeric transactionId',
+ hashId,
+ status: ResponseStatus.FAILURE,
+ },
+ ],
status: ResponseStatus.FAILURE,
}
}