From 9d23ba001ee6df8bcbf422f3f9a9c740d81b6968 Mon Sep 17 00:00:00 2001 From: nya Date: Thu, 21 Dec 2023 22:51:15 +0000 Subject: [PATCH] nya --- Dockerfile | 20 ++++++++++++++++++++ docker-compose.yml | 6 ++++++ 2 files changed, 26 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..37202fe --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +# Use Node 16 alpine as parent image +FROM node:16-alpine + +# Change the working directory on the Docker image to /app +WORKDIR /app + +# Copy package.json and package-lock.json to the /app directory +COPY package.json package-lock.json ./ + +# Install dependencies +RUN npm install + +# Copy the rest of project files into this image +COPY . . + +# Expose application port +EXPOSE 3000 + +# Start the application +CMD npm start diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..b893cd7 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,6 @@ +version: "3.6" +services: + kana: + build: . + ports: + - 127.0.0.1:8060:8080