ctf-resources/htb/hacktheboo2024/web/web_unholy_union/Dockerfile

20 lines
499 B
Docker

# Use the official Node.js image as a base
FROM node:alpine
RUN apk add --no-cache --update mariadb mariadb-client supervisor gcc musl-dev mariadb-connector-c-dev
WORKDIR /app
COPY src/ .
COPY config/supervisord.conf /etc/supervisord.conf
COPY --chown=root entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
RUN npm install express request mysql2
# Expose port 3000
EXPOSE 3000
COPY flag.txt /flag.txt
# Command to run the application
ENTRYPOINT [ "/entrypoint.sh" ]