fbla-cs-competition/Dockerfile
devaine 1736e9eb09
Some checks failed
/ build (push) Failing after 0s
/ deploy (push) Failing after 16s
feat(initial commit): first commit, testing out deployment
2026-05-10 16:50:19 -05:00

38 lines
673 B
Docker

# TODO: Plan for docker-compose.yml, create a script on run.bash to wait for .env file to run
# the application
FROM node:25-alpine
# WARNING: These ports are the default ports for the app, you should probably
# change them eventually, OR use docker-compose.yml to change them.
EXPOSE 8000
EXPOSE 3000
RUN <<EOF
apk update
apk add python3
apk add bash
EOF
# NOTE: Filesystem setup (probably needs COPY and WORKDIR)
COPY . /app
WORKDIR /app
# NOTE: Frontend setup
WORKDIR /app/frontend
RUN npm run build
# NOTE: Backend setup
WORKDIR /app/api
RUN <<EOF
bash ./run.bash
EOF
ENV PATH="/app/api/venv/bin:$PATH"
#SHELL ["bash", "-c"]
WORKDIR /app
RUN "bash run.bash"