feat(initial commit): first commit, testing out deployment
This commit is contained in:
parent
9b83b69068
commit
1736e9eb09
27 changed files with 7097 additions and 1 deletions
38
Dockerfile
Normal file
38
Dockerfile
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
# 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue