mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-22 14:54:22 +00:00
Stefano Pigozzi
ba53064ce2
* ✨ Create Dockerfile for the backend * 🔧 Limit the allowed slug values * ✨ Create docker image for the proxy * ✨ Add serve script (and serve dependency) * ✨ Add .dockerignore symlinks to .gitignore * ✨ Create docker image for the frontend * 🔧 Proxy the frontend * 🔧 Configure the proxy.dbm directory * 🚧 WIP * 💥 Improve settings handling * 💥 Prepare backend for docker deployment * 🔧 Reserve `static` notebook slug * ✨ Make static work * 🐛 Set a default value for reduce * 💥 Things * 💥 Everything works!
19 lines
No EOL
374 B
Docker
19 lines
No EOL
374 B
Docker
FROM node:16.11.1-bullseye
|
|
LABEL maintainer="Stefano Pigozzi <me@steffo.eu>"
|
|
|
|
# Set the base workdir
|
|
WORKDIR /usr/src/app
|
|
|
|
# Copy the yarn files
|
|
COPY package.json ./package.json
|
|
COPY yarn.lock ./yarn.lock
|
|
|
|
# Install the package
|
|
RUN yarn install
|
|
|
|
# Copy the rest of the project into the container
|
|
COPY . .
|
|
|
|
# Start the serve server
|
|
ENTRYPOINT ["yarn", "run"]
|
|
CMD ["serve"] |