Skip to content

Commit

Permalink
Set up Dockerfile for app
Browse files Browse the repository at this point in the history
  • Loading branch information
paulomarg committed Jun 12, 2023
1 parent 232f837 commit 94e48f2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.cache
build
node_modules
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM node:18-alpine

ARG SHOPIFY_API_KEY
ENV SHOPIFY_API_KEY=$SHOPIFY_API_KEY

EXPOSE 3000
WORKDIR /app
COPY . .

RUN npm install
RUN npm run build

# You'll probably want to remove this in production, it's here to make it easier to test things!
RUN rm prisma/dev.sqlite
RUN npx prisma migrate dev --name init

CMD ["npm", "run", "start"]
2 changes: 1 addition & 1 deletion shopify-app-remix/src/auth/webhooks/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function registerWebhooksFactory({ api, logger }: BasicParams) {
logger.error("Failed to register webhook", {
topic,
shop: session.shop,
result: rest.result,
result: JSON.stringify(rest.result),
});
}
});
Expand Down

0 comments on commit 94e48f2

Please sign in to comment.