Add docker-compose.yaml

This commit is contained in:
Takeshi Kimata
2024-06-16 19:35:04 +09:00
parent a8cd231a82
commit d4db61860f
6 changed files with 36 additions and 20 deletions

View File

@@ -5,12 +5,7 @@ COPY package.json package-lock.json ./
RUN npm ci
COPY . .
ENV FRONTEND_ORIGIN=http://localhost:8000
ENV PORT=8001
EXPOSE $PORT
RUN npx sequelize db:migrate
RUN echo "Migration complete."
CMD ["node", "index.js"]