feat(ci): add docker, docker compose
This commit is contained in:
12
server/Dockerfile
Normal file
12
server/Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
FROM node:18-alpine
|
||||
WORKDIR /app/server
|
||||
COPY server/package*.json ./
|
||||
RUN npm install
|
||||
COPY server/ .
|
||||
COPY shared /app/shared
|
||||
ENV NODE_ENV=production
|
||||
ENV PORT=4000
|
||||
EXPOSE 4000
|
||||
CMD ["node", "--loader", "ts-node/esm", "src/index.ts"]
|
@@ -1,5 +1,5 @@
|
||||
import type { VisitDoc } from './visit.model';
|
||||
import type { VisitDto } from '../../../shared/visit';
|
||||
import type { VisitDto } from '../../../../shared/visit';
|
||||
|
||||
export function toVisitDto(doc: VisitDoc): VisitDto {
|
||||
const json = doc.toJSON();
|
||||
|
Reference in New Issue
Block a user