mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-22 14:54:22 +00:00
✨ Create docker image for the frontend
This commit is contained in:
parent
dcf4b051ae
commit
36b1dbbfd2
1 changed files with 18 additions and 0 deletions
18
frontend/Dockerfile
Normal file
18
frontend/Dockerfile
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
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", "serve"]
|
Loading…
Reference in a new issue