-
-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathdev.Dockerfile
More file actions
36 lines (26 loc) · 958 Bytes
/
dev.Dockerfile
File metadata and controls
36 lines (26 loc) · 958 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# dev.Dockerfile
FROM node:22-bookworm-slim
RUN echo "⚠️ This Dockerfile is not recommended for current development use. See docs/decision-records/docker-for-dev.md for more info." && exit 1
# Install system dependencies
RUN apt-get update && apt-get install -y \
python3 python3-pip python3-venv \
sqlite3 build-essential openssl ca-certificates \
&& apt-get clean
WORKDIR /py
RUN python3 -m venv venv && \
. venv/bin/activate && \
pip install build
# Create working directory for Remix app
WORKDIR /app
# Copy node dependencies files explicitly
COPY heat-stack/package.json ./
COPY heat-stack/package-lock.json ./
COPY heat-stack/.npmrc ./
COPY heat-stack/.env.example ./.env
# Install dependencies
# Set up working directory for Python
RUN npm install
# Add SQLite CLI shortcut
RUN echo '#!/bin/sh\nsqlite3 $DATABASE_URL' > /usr/local/bin/database-cli && chmod +x /usr/local/bin/database-cli
# Final working directory
WORKDIR /app