hostname-service-ui/Dockerfile

24 lines
565 B
Docker

FROM node:latest
# Copy your application files
COPY . /app
WORKDIR /app
# Install dependencies and build the app
RUN npm install
RUN npm run build
# Copy the environment variables template
COPY env-config.js.template /app/build/env-config.js.template
RUN apt-get update && apt-get install -y gettext-base && rm -rf /var/lib/apt/lists/*
# Expose the port the app runs on
EXPOSE 8080
# Add a shell script to run at container startup
COPY entrypoint.sh /app/entrypoint.sh
RUN chmod +x /app/entrypoint.sh
ENTRYPOINT ["/app/entrypoint.sh"]