Skip to content

Commit

Permalink
Install with the new make command
Browse files Browse the repository at this point in the history
  • Loading branch information
davisagli committed Nov 30, 2024
1 parent cccaf61 commit 3c474af
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 17 deletions.
10 changes: 10 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM python:3.12-slim-bullseye

# Dev dependencies
RUN apt-get update \
&& apt-get install -y build-essential git libmagic1 libbz2-dev libjpeg62-turbo-dev zlib1g-dev --no-install-recommends \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

ENV PYTHONUNBUFFERED 1
ENV PYTHONDONTWRITEBYTECODE 1
5 changes: 0 additions & 5 deletions .devcontainer/devcontainer-build.sh

This file was deleted.

24 changes: 12 additions & 12 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/python
{
"name": "Plone 6.1",
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye",
"name": "Plone Coredev",
"build": { "dockerfile": "Dockerfile" },

// Use 'portsAttributes' to set default properties for specific forwarded ports.
// More info: https://containers.dev/implementors/json_reference/#port-attributes
"portsAttributes": {
"8080": {
"label": "Plone Backend",
"onAutoForward": "notify"
}
},
// Use 'portsAttributes' to set default properties for specific forwarded ports.
// More info: https://containers.dev/implementors/json_reference/#port-attributes
"portsAttributes": {
"8080": {
"label": "Plone Backend",
"onAutoForward": "notify"
}
},

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "./.devcontainer/devcontainer-build.sh"
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "make install"
}

0 comments on commit 3c474af

Please sign in to comment.