Tru different definition
This commit is contained in:
parent
43f7871267
commit
06c08ef93b
|
@ -1,4 +1,14 @@
|
||||||
{
|
{
|
||||||
"schemaVersion": 2,
|
"schemaVersion": 2,
|
||||||
"templateId": "node/19"
|
"dockerfileLines": [
|
||||||
}
|
"FROM node:20-alpine",
|
||||||
|
"RUN mkdir -p /usr/src/app",
|
||||||
|
"WORKDIR /usr/src/app",
|
||||||
|
"COPY ./ /usr/src/app",
|
||||||
|
"RUN npm install && npm cache clean --force && npm run build",
|
||||||
|
"ENV NODE_ENV production",
|
||||||
|
"ENV PORT 80",
|
||||||
|
"EXPOSE 80",
|
||||||
|
"CMD [ \"npm\", \"start\" ]"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user