starbase-81/dockerfile
Jordan Roher 0d7285dade Working on getting the dockerfile right
Replacement works, but not from the point of container start
2023-04-20 16:42:30 -07:00

19 lines
280 B
Plaintext

FROM node:18-alpine
WORKDIR /app
COPY package.json .
RUN npm i
COPY . .
ENV NODE_ENV production
ENV TITLE "My Website"
EXPOSE 4173
RUN sed -i -e 's/HTMLTITLE/'"${TITLE}"'/g' ./index.html
RUN sed -i -e 's/HTMLTITLE/'"${TITLE}"'/g' ./src/main.tsx
CMD ["npm", "run", "start"]