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