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

21 lines
499 B
Docker
Raw Permalink Normal View History

2024-10-23 11:10:43 +02:00
# 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" ]