2023-12-10 15:15:13 +01:00
|
|
|
{
|
2023-12-10 16:57:07 +01:00
|
|
|
"schemaVersion": 2,
|
|
|
|
"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\" ]"
|
|
|
|
]
|
|
|
|
}
|