-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from appvia/dockerfile-context
chore: move dockerfile to root and update context
- Loading branch information
Showing
3 changed files
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
# syntax=docker/dockerfile:1 | ||
FROM node:22-alpine | ||
LABEL maintainer="Appvia Ltd <[email protected]>" | ||
WORKDIR /app | ||
COPY yarn.lock ./ | ||
COPY package.json ./ | ||
COPY ./app/yarn.lock ./ | ||
COPY ./app/package.json ./ | ||
RUN yarn install --production | ||
COPY . . | ||
COPY ./app . | ||
EXPOSE 3000 | ||
CMD ["node", "src/index.js"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ version: "3.7" | |
services: | ||
app: | ||
build: | ||
context: app | ||
context: ./ | ||
ports: | ||
- 3000:3000 | ||
expose: | ||
|