gui-controller/Dockerfile
jmarchel 9e3f726444 Add configuration of ci/cd process
Change-Id: I540b00dd35915665d355ee4348323f2a6e17c352
2024-02-28 17:46:13 +00:00

29 lines
534 B
Docker

# Use an official Node runtime as a parent image (Alpine for smaller footprint)
FROM node:lts-alpine3.15
WORKDIR /srv/www/apostrophe
RUN chown -R node: /srv/www/apostrophe
USER node
COPY --chown=node package*.json /srv/www/apostrophe/
ENV NODE_ENV=production
RUN npm install
COPY --chown=node . /srv/www/apostrophe/
RUN ./scripts/build-assets.sh
EXPOSE 3000
ENV APOS_MONGODB_URI=""
ENV ACTIVEMQ_HOST=""
ENV ACTIVEMQ_PORT=""
ENV ACTIVEMQ_USERNAME=""
ENV ACTIVEMQ_PASSWORD=""
# Command to run the app
CMD [ "node", "app.js" ]