Skip to content

Commit 8977eaa

Browse files
CopilotJackJPowell
andcommitted
Optimize Dockerfile and fix environment variables in workflow
Co-authored-by: JackJPowell <7500683+JackJPowell@users.noreply.github.com>
1 parent aca0f7d commit 8977eaa

2 files changed

Lines changed: 5 additions & 10 deletions

File tree

.github/workflows/build-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ jobs:
119119
120120
```bash
121121
# Pull the specific version
122-
docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ needs.build.outputs.version }}
122+
docker pull ghcr.io/${{ github.repository }}:${{ needs.build.outputs.version }}
123123
124124
# Pull the latest version
125-
docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
125+
docker pull ghcr.io/${{ github.repository }}:latest
126126
```
127127
128128
## Installation

Dockerfile

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,18 @@
11
# Dockerfile for Unfolded Circle Home Assistant Custom Component
22
FROM homeassistant/home-assistant:stable
33

4-
# Set working directory
5-
WORKDIR /config/custom_components
4+
# Create custom_components directory
5+
RUN mkdir -p /config/custom_components
66

77
# Copy the custom component
88
COPY custom_components/unfoldedcircle /config/custom_components/unfoldedcircle
99

10-
# Install additional requirements if any
11-
RUN pip install --no-cache-dir \
12-
"websockets>=15.0,<16.0" \
13-
"pyUnfoldedCircleRemote==0.14.6" \
14-
"wakeonlan==3.1.0"
15-
1610
# Set proper permissions
1711
RUN chown -R 1000:1000 /config/custom_components/unfoldedcircle
1812

1913
# Expose Home Assistant port
2014
EXPOSE 8123
2115

2216
# Use the default Home Assistant entrypoint
17+
# Dependencies will be installed automatically by Home Assistant when the component loads
2318
CMD ["python", "-m", "homeassistant", "--config", "/config"]

0 commit comments

Comments
 (0)