Skip to content

Commit 4645f35

Browse files
authored
Merge pull request #419 from sa-fw-an/docker
Fix: Resolve Python Installation Issue in Docker Setup
2 parents cef2bd2 + 9ffe7e8 commit 4645f35

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

Dockerfile

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
1-
# base from official Node (Alpine LTS) image
1+
# Base from official Node (Alpine LTS) image
22
FROM node:lts-alpine
33

4-
# install simple http server for serving static content
4+
# Install system dependencies for native modules and Python distutils
5+
RUN apk update && apk add --no-cache \
6+
build-base \
7+
python3 \
8+
py3-setuptools
9+
10+
# Install simple http server for serving static content
511
RUN npm install -g http-server
612

7-
# install typescript compiler
13+
# Install TypeScript compiler
814
RUN npm install -g typescript
915

10-
# install ts-node (to run/debug .ts files without manual transpiling)
16+
# Install ts-node (to run/debug .ts files without manual transpiling)
1117
RUN npm install -g ts-node
1218

13-
# set /app as working directory (in development mode for mounting source code)
19+
# Set /app as working directory (in development mode for mounting source code)
1420
WORKDIR /app
1521

16-
# override default CMD for image ("node"): launch the shell
22+
# Override default CMD for image ("node"): launch the shell
1723
CMD sh
1824

1925
# Listen on ports

docker-compose.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
1-
---
2-
# Documentation: https://docs.docker.com/compose/compose-file/compose-file-v3/
3-
4-
version: '3.8'
51
services:
62
musicblocks:
73
build: ./
84
image: ghcr.io/sugarlabs/musicblocks:4-dev
9-
env_file:
10-
- ./env/development.env
115
ports:
126
- '5173:5173' # development server
137
- '4173:4173' # production preview server

0 commit comments

Comments
 (0)