Skip to content

Commit

Permalink
Merge pull request #127 from Z-100/prepare-for-k8s
Browse files Browse the repository at this point in the history
feature(prepare-for-k8s): Add dockerfile + ignore
  • Loading branch information
Z-100 authored Jun 21, 2024
2 parents f3877c6 + ed7d2ab commit 79c61e0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
build
.dockerignore
Dockerfile
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:20-alpine

WORKDIR /app

ENV PATH /app/node_modules/.bin:$PATH

COPY package.json ./
COPY package-lock.json ./

RUN npm i --silent
RUN npm i -g server --silent

COPY .. ./

CMD ["serve", "-s", "build"]

0 comments on commit 79c61e0

Please sign in to comment.