Skip to content

Commit

Permalink
Merge pull request #19 from not-byte/docker
Browse files Browse the repository at this point in the history
 build(app): fixed Dockefile work directory
  • Loading branch information
botprzemek authored May 6, 2024
2 parents 4f13769 + 579796e commit 5610fab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions config/app/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
npm-debug.log
6 changes: 5 additions & 1 deletion config/app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@ ARG NUXT_MAIL_URL

ENV HOST="127.0.0.1"
ENV PORT="3000"
ENV NODE_ENV="production"
ENV NUXT_MAIL_URL ${NUXT_MAIL_URL}

WORKDIR /app

COPY package*.json ./

RUN npm ci --only=production

COPY . .

RUN npm install
RUN npm run build

CMD ["node", ".output/server/index.mjs"]
Expand Down

0 comments on commit 5610fab

Please sign in to comment.