Skip to content

Commit 41a9cac

Browse files
committed
fix dockerfile
1 parent 14172ff commit 41a9cac

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Dockerfile

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
FROM ruby:3.3-alpine3.19 AS builder
44

5-
ENV LANG C.UTF-8
5+
ENV LANG=C.UTF-8
66
ENV WORKDIR="/app/"
77
WORKDIR ${WORKDIR}
88

@@ -35,7 +35,7 @@ RUN apk add nodejs npm \
3535
&& rm -rf /var/cache/apk/*; \
3636
npm install -g prettier;
3737

38-
ENV LANG C.UTF-8
38+
ENV LANG=C.UTF-8
3939
ENV RUBY_YJIT_ENABLE=1
4040
ENV NODEJS_VERSION=20
4141
ENV RACK_ENV=production
@@ -44,11 +44,12 @@ ENV RACK_ENV=production
4444
ARG USERNAME=labradorite
4545
RUN adduser -D ${USERNAME}
4646
USER ${USERNAME}
47+
ENV WORKDIR=/home/${USERNAME}
4748
WORKDIR /home/${USERNAME}
4849

4950
EXPOSE 9292
5051

5152
COPY --from=gembuilder /usr/local/bundle/ /usr/local/bundle/
5253
COPY --chown=${USERNAME} . ${WORKDIR}
5354

54-
CMD bundle exec rackup -o0 -Eproduction
55+
CMD ["bundle", "exec rackup -o0 -Eproduction"]

0 commit comments

Comments
 (0)