Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions docker/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ RUN apk add --no-cache git gcc g++ python3 make musl-dev

COPY package.json yarn.lock ./

RUN yarn install --prod
RUN yarn install

COPY . .

Expand All @@ -14,12 +14,15 @@ RUN yarn build
FROM node:16-alpine

WORKDIR /usr/src/app
RUN apk add --no-cache git gcc g++ python3 make musl-dev

COPY package.json yarn.lock ./

RUN yarn install --prod

COPY --from=builder /usr/src/app/build ./
COPY --from=builder /usr/src/app/node_modules ./node_modules
COPY ./migrations/ ./migrations/
COPY ./static/ ./static/
COPY migrate-mongo-config.js ./
COPY package.json ./

CMD ["node", "index.js"]
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hawk.api",
"version": "1.1.40",
"version": "1.1.41",
"main": "index.ts",
"license": "BUSL-1.1",
"scripts": {
Expand Down