awekas/apps/mqtt-gateway/Dockerfile
Felix Dürrwald aadf93c0f0
Some checks failed
CI / main (push) Failing after 19s
feat: Implement mqtt-gateway
2024-09-29 08:51:42 +02:00

25 lines
718 B
Docker

# This file is generated by Nx.
#
# Build the docker image with `npx nx docker-build mqtt-gateway`.
# Tip: Modify "docker-build" options in project.json to change docker build args.
#
# Run the container with `docker run -p 3000:3000 -t mqtt-gateway`.
FROM docker.io/node:lts-alpine
ENV HOST=0.0.0.0
ENV PORT=3000
WORKDIR /app
RUN addgroup --system mqtt-gateway && \
adduser --system -G mqtt-gateway mqtt-gateway
COPY dist/apps/mqtt-gateway mqtt-gateway/
RUN chown -R mqtt-gateway:mqtt-gateway .
# You can remove this install step if you build with `--bundle` option.
# The bundled output will include external dependencies.
RUN npm --prefix mqtt-gateway --omit=dev -f install
CMD [ "node", "mqtt-gateway" ]