22 lines
344 B
Docker
22 lines
344 B
Docker
FROM docker.io/denoland/deno:alpine-2.0.2
|
|
|
|
WORKDIR /app
|
|
|
|
# Cache dependencies
|
|
COPY deno.json .
|
|
RUN deno install || true
|
|
|
|
# Copy source code and assets
|
|
COPY main.ts .
|
|
COPY src ./src
|
|
COPY viewer ./viewer
|
|
COPY data ./data
|
|
COPY mechanical ./mechanical
|
|
COPY electrical ./electrical
|
|
|
|
# Expose port
|
|
EXPOSE 80
|
|
|
|
# Run the Deno app
|
|
CMD ["task", "start"]
|