Updated Dockerfile and added dockerignore

This commit is contained in:
Late Night Defender 2023-07-20 21:29:38 +07:00
parent 4f20736752
commit 8ecdb30b70
2 changed files with 25 additions and 1 deletions

24
.dockerignore Normal file
View file

@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

View file

@ -5,7 +5,7 @@ RUN apk add yarn nodejs
# Copy files to build environment # Copy files to build environment
RUN mkdir /opt/micromobility-navigation RUN mkdir /opt/micromobility-navigation
COPY micromobility-navigation/ /opt/micromobility-navigation COPY . /opt/micromobility-navigation
# Run Vite production build # Run Vite production build
WORKDIR /opt/micromobility-navigation WORKDIR /opt/micromobility-navigation