Files
catherine-league/Dockerfile
2021-08-29 20:18:54 +09:00

17 lines
249 B
Docker

FROM node:14
WORKDIR /tmp
COPY . .
RUN ["./build_script.sh"]
FROM arm32v7/node:14
WORKDIR /usr/src/app
COPY --from=0 /tmp/build .
RUN apt-get update && apt install mariadb-client -y
RUN npm install
EXPOSE 4000
CMD [ "node", "server/index.js" ]