From 36b1dbbfd290e86aaf50e2b424634dffaa0913d1 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 18 Oct 2021 21:29:11 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Create=20docker=20image=20for=20the?= =?UTF-8?q?=20frontend?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 frontend/Dockerfile diff --git a/frontend/Dockerfile b/frontend/Dockerfile new file mode 100644 index 0000000..445b564 --- /dev/null +++ b/frontend/Dockerfile @@ -0,0 +1,18 @@ +FROM node:16.11.1-bullseye +LABEL maintainer="Stefano Pigozzi " + +# 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"]