-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
30 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,5 @@ Dockerfile* | |
.git/ | ||
.git/* | ||
.git/** | ||
.nuxt/ | ||
dist/ |
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,20 +1,23 @@ | ||
FROM mhart/alpine-node:12 | ||
|
||
RUN apk update && \ | ||
RUN apk update && \ | ||
apk upgrade && \ | ||
apk add --no-cache git nano bash jq | ||
|
||
WORKDIR /app | ||
|
||
COPY package.json package-lock.json ./ | ||
RUN npm install | ||
RUN npm run-script build | ||
RUN npm run build | ||
|
||
# Only copy over the node pieces we need from the above image | ||
FROM mhart/alpine-node:slim-12 | ||
FROM mhart/alpine-node:12 | ||
WORKDIR /app | ||
COPY --from=0 /app . | ||
COPY . . | ||
EXPOSE 3000 | ||
|
||
CMD ["npm", "run", "dev"] | ||
EXPOSE 5302 | ||
ENV PORT=5302 | ||
|
||
# CMD ["npm", "start"] | ||
CMD npm run dev-clean |
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
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