Skip to content

Commit

Permalink
fix: docker build (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
stanistan authored May 8, 2023
1 parent 771cb80 commit 2e3b610
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
17 changes: 15 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
.dockerignore
.env
docker-compose.yml
*Dockerfile
Makefile
node_modules
server/.env
*.log*
.nuxt
.nitro
.cache
frontend/node_modules
frontend/.output
frontend/dist
frontend/.pnp.*
frontend/.yarn/*
!frontend/.yarn/patches
!frontend/.yarn/plugins
!frontend/.yarn/releases
!frontend/.yarn/sdks
!frontend/.yarn/versions
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
FROM node:19.6-alpine as frontend
RUN corepack enable

WORKDIR /app
COPY frontend/package.json frontend/yarn.lock ./
RUN yarn install
COPY frontend/.yarn .yarn/
COPY frontend/package.json frontend/yarn.lock frontend/.yarnrc.yml ./
RUN yarn
COPY frontend /app
RUN yarn run generate

Expand Down
1 change: 0 additions & 1 deletion frontend/yarnrc.yml

This file was deleted.

0 comments on commit 2e3b610

Please sign in to comment.