From 4a0b227bab9d2d4982e60d97d0a0635b6da908c2 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sun, 26 May 2024 10:27:07 +0200 Subject: [PATCH] Adjust dockerignore file --- .dockerignore | 24 ++++++++++++------------ Dockerfile | 6 ++++-- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/.dockerignore b/.dockerignore index e11c1c4..74bb8f5 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,12 +1,12 @@ -./.github -./build -./coverage -./data -./docs -./home -./node_modules -./test -./.eslintrc -./docker-compose* -./indocker -./vitest.config.ts +.github +build +coverage +data +docs +home +node_modules +test +.eslintrc +docker-compose* +indocker +vitest.config.ts diff --git a/Dockerfile b/Dockerfile index f9c052f..1e0472a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,11 @@ FROM node:22.2-alpine as builder -COPY . /shlink-dashboard ARG VERSION="latest" ENV VERSION ${VERSION} + +COPY . /shlink-dashboard +WORKDIR /shlink-dashboard # Install dev dependencies and build project -RUN cd /shlink-dashboard && npm ci && node --run build +RUN npm ci && node --run build FROM node:22.2-alpine